From 0cc5177c8a6b7c5eb070f1d5c4ed659e389ee1cd Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Tue, 23 Jan 2024 18:08:26 +0100 Subject: [PATCH] bugfix for command syntax change of updaterooms all --- fdb_spider_interface.py | 6 +++--- new_message_file.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fdb_spider_interface.py b/fdb_spider_interface.py index 0d91e3b..be79526 100644 --- a/fdb_spider_interface.py +++ b/fdb_spider_interface.py @@ -686,9 +686,9 @@ if __name__ == '__main__': except Exception as e: print("probably i was not there in last page, original error is:", e) - if room_to_update == 'NONE': - answer = 'No room was specified, all rooms will get an update based on the data available' - if room_was_found == False and room_to_update != 'NONE': + if room_to_update == 'all': + answer = 'I am updating all rooms based on the data in fdb-spider/spiders/output..' + if room_was_found == False or room_to_update == 'NONE': answer = 'The room you specified does not exist, or there are no rooms configured, try the command without argument -> updaterooms' if room_was_found == True and room_to_update != 'NONE': answer = "I am updating the specified room based on the data in fdb-spider/spiders/output.." diff --git a/new_message_file.txt b/new_message_file.txt index 5b52fb8..04f7af0 100644 --- a/new_message_file.txt +++ b/new_message_file.txt @@ -1 +1 @@ -updaterooms 65afd8b77954218b501634f2§%§%uBPGeQtsNmy3wvSga \ No newline at end of file +updaterooms§%§%8dABdxJm2j9WQomKu \ No newline at end of file