Skip to content

Commit 2e48720

Browse files
author
Jeroen van der Heijden
committed
fixed bugs
1 parent 3c46585 commit 2e48720

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

thingsdb/model/eventhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def on_watch_update(self, data):
4444
logging.debug(
4545
f'Cannot update #{thing_id} since the thing is not registerd '
4646
f'for watching by collection `{self._collection._name}`; '
47-
f'Maybe this thing is watched as an Emitter?'))
47+
f'Maybe this thing is watched as an Emitter?')
4848
return
4949

5050
thing.on_update(data['event'], data['jobs'])

thingsdb/model/proptypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def timeval_(v):
9898
if not isinstance(v, dict) or not '"' in dict:
9999
raise TypeError(f'expecting type `timeval`, got `{type(v)}`')
100100
timestamp, _offset, _tz_idx = v['"']
101-
return datetime.fromtimestamptimestamp)
101+
return datetime.fromtimestamp(timestamp)
102102

103103
@staticmethod
104104
def bytes_(v):

0 commit comments

Comments
 (0)