- commit
- 862250b8e8d5a18176c27705a0fd3967dd4d539c
- parent
- 7b87841c6bbb95061324310ecf585d6848655b56
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-12-25 10:03
list: sorted output
Diffstat
| M | handelsregister.py | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/handelsregister.py b/handelsregister.py
@@ -103,7 +103,7 @@ def get_context(session): 103 103 if option['value'] 104 104 }, 105 105 'types': {106 -1 option['value']: option.text.strip()-1 106 int(option['value'], 10): option.text.strip() 107 107 for option in soup.select(r'#form\:rechtsform_input option') 108 108 if option['value'] 109 109 }, @@ -212,5 +212,5 @@ if __name__ == '__main__': 212 212 elif args.action == 'xml': 213 213 print(get_xml(args.register, args.id, args.court)) 214 214 else:215 -1 for key, value in get_list(args.key).items():-1 215 for key, value in sorted(get_list(args.key).items()): 216 216 print(f'{key}\t{value}')