Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
plushkatze
foobarpay
Commits
5a00602b
Commit
5a00602b
authored
Apr 19, 2016
by
anthraxx
Browse files
reset logic last_action after handling input (may contain sleeps)
parent
1657bcd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
foobarpay/logic.py
View file @
5a00602b
...
...
@@ -58,7 +58,6 @@ class Logic(object):
def
handle_scanned_text
(
self
,
scanned_text
):
try
:
self
.
last_action
=
time
()
if
scanned_text
.
startswith
(
self
.
USER_ID_PREFIX
):
# TODO: add proper checksum
scanned_text
=
scanned_text
[:
-
1
]
...
...
@@ -105,6 +104,7 @@ class Logic(object):
)
except
ValueError
:
pass
self
.
last_action
=
time
()
def
tick
(
self
):
# TODO: check last_action and reset() with message
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment