Skip to content
Snippets Groups Projects
Commit eada1519 authored by David Trattnig's avatar David Trattnig
Browse files

Only store active source when it differs.

parent 4562c353
No related branches found
No related tags found
No related merge requests found
......@@ -191,9 +191,10 @@ class ApiService():
source_number (Integer): Number of the engine
"""
if self.active_source > 0:
self.active_source = source_number
activity_log = ActivityLog(active_source)
activity_log.save()
if self.active_source != source_number:
self.active_source = source_number
activity_log = ActivityLog(active_source)
activity_log.save()
def get_active_source(self):
......
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