Browse Source

added name functionality to delete rooms

master
alpcentaur 9 months ago
parent
commit
d9a73e153a
3 changed files with 8 additions and 5 deletions
  1. +6
    -4
      fdb_spider_interface.py
  2. +1
    -1
      new_message_file.txt
  3. +1
    -0
      roomhistories/657c97e5ebb39dd248d38d51.txt

+ 6
- 4
fdb_spider_interface.py View File

@ -433,9 +433,9 @@ if __name__ == '__main__':
To update all rooms use To update all rooms use
command : `updaterooms all` command : `updaterooms all`
----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------
To update one room use the room_id from the output of printrooms:
command : `updaterooms <room-id>`
example : `updaterooms 6572012bebb39dd248d08320`
To update one room use the name of the room from the output of printrooms:
command : `updaterooms <room-name>`
example : `updaterooms test42`
----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------
To create a room use following command, but be sure to **not have spaces** in your lists, To create a room use following command, but be sure to **not have spaces** in your lists,
as a space indicates a new command argument: as a space indicates a new command argument:
@ -730,7 +730,9 @@ if __name__ == '__main__':
if user_input_list[0] == 'deleteroom': if user_input_list[0] == 'deleteroom':
try: try:
room_id_del = user_input_list[1]
room_name_del = user_input_list[1]
room_id_del = name2id(room_name_del)
#room_id_del = user_input_list[1]
except Exception as e: except Exception as e:
room_id_del = 'NONE' room_id_del = 'NONE'
print(e) print(e)

+ 1
- 1
new_message_file.txt View File

@ -1 +1 @@
printtags test42§%§%DXbmwicNHnmruZpKw
printcommands§%§%ZqWKDLrEKM3vKgdSy

+ 1
- 0
roomhistories/657c97e5ebb39dd248d38d51.txt View File

@ -11,3 +11,4 @@
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1EQWGUKJ/de/overview?90|81301134 - Provide recommendations for Donor Interventions to support Green Industrial Policies and Just Transition Implications> <https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1EQWGUKJ/de/overview?90|81301134 - Provide recommendations for Donor Interventions to support Green Industrial Policies and Just Transition Implications>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1CV0XTS6/de/overview?97|81296882-Unterstützungsleistungen für das SV Klima> <https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1CV0XTS6/de/overview?97|81296882-Unterstützungsleistungen für das SV Klima>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1C82BB4U/de/overview?99|81294786-Development of Sustainable Energy and Climate Action Plans for selected Local Self-Government Units in Western Balkans> <https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYY6Y1C82BB4U/de/overview?99|81294786-Development of Sustainable Energy and Climate Action Plans for selected Local Self-Government Units in Western Balkans>
<https://ausschreibungen.giz.de/Satellite/public/company/project/CXTRYYRY1929CTM8/de/overview?50|Smart Water Meters for Libanon>

Loading…
Cancel
Save