Skip to content
Snippets Groups Projects
Commit a4bafbc3 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Create new record when not found

parent e6537d38
No related branches found
No related tags found
5 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!78Feat cod rmq,!62Feat notify user errmsg,!63Feat db handle
...@@ -122,6 +122,8 @@ def task_manager(ch, method, properties, body): ...@@ -122,6 +122,8 @@ def task_manager(ch, method, properties, body):
current['reason'] = msg.get('reason', '') current['reason'] = msg.get('reason', '')
current['fullname'] = msg.get('fullname', '') current['fullname'] = msg.get('fullname', '')
insert_db(username, msg)
logger.debug(f'Tracking user {username}') logger.debug(f'Tracking user {username}')
else: else:
current = tracking[username] current = tracking[username]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment