238 Commits

Author SHA1 Message Date
Eriks K
2f69090c03 bugfix 2020-06-19 13:44:33 +03:00
Eriks K
8ca845cf17 Add damage amount to inventory bomb 2020-06-19 13:36:45 +03:00
Eriks K
66f0e648df Citizen.to_json() bugfixed and optimised 2020-06-18 10:10:22 +03:00
Eriks K
a825917a98 WAM/Employ bugfix
Company sorting bugfix
2020-06-16 16:59:56 +03:00
Eriks K
b480ed7230 Companies and holdings created as python objects from Dicts 2020-06-15 16:02:36 +03:00
Eriks K
67677f356f eRepublik updated contributions endpoint 2020-06-15 15:59:03 +03:00
Eriks K
ff869e0403 Bomb deploy bugfix 2020-06-15 15:47:48 +03:00
Eriks K
845cd8d174 Bugfix - auto buy raw bought all available items in offer, not the required amount 2020-06-01 11:11:48 +03:00
Eriks K
4e337177f2 Restricted IP check 2020-05-25 12:30:03 +03:00
Eriks K
eed244deb5 Article commenting bugfix 2020-05-19 14:03:41 +03:00
Eriks K
1e7c9a395e Article publishing bugfix 2020-05-19 13:56:27 +03:00
Eriks K
7aa353bc06 minor bugfix 2020-05-15 09:52:49 +03:00
Eriks K
6642839af5 WAM failed when added employee work unit count is less than available 2020-05-15 09:26:10 +03:00
Eriks K
c216d98287 'dict' object has no attribute 'json' 2020-05-15 09:17:56 +03:00
Eriks K
588475d554 NoneType object has no method get 2020-05-14 17:15:11 +03:00
Eriks K
ab3ce2b8c3 tuple indices must be integers or slices, not str 2020-05-14 16:51:55 +03:00
Eriks K
a208c8bcf0 Object of type Response is not JSON serializable 2020-05-14 16:41:18 +03:00
Eriks K
5712007e3f Typos 2020-05-14 14:30:02 +03:00
Eriks K
f64a9dc709 eRepublik has moved citizen contributions to different campaign list endpoint 2020-05-14 14:07:30 +03:00
Eriks K
c094ef26b4 Flake8 2020-05-14 12:45:57 +03:00
Eriks K
3cac1cf041 Script will log actions done more verbosely to be more transparent about done actions 2020-05-14 12:29:14 +03:00
Eriks K
5c47b70ea6 Wrong offer assignment, resulting in returned data of newest offers not cheapest 2020-05-12 14:19:10 +03:00
Eriks K
05964f6c58 CitizenEconomy.get_market_offers() fixed 2020-05-12 13:45:32 +03:00
Eriks Karls
d95c472ede Donation rate limit 2020-04-30 15:11:55 +03:00
Eriks Karls
9a0cbf77da Citizen.work_as_manager return types normalized and documented 2020-04-29 10:52:07 +03:00
Eriks Karls
904fd4efc8 Moved utils.report_promo to classes.Reporter.report_promo 2020-04-23 14:39:42 +03:00
Eriks Karls
1bbe72f3e1 Fixed imports 2020-04-23 14:32:13 +03:00
Eriks Karls
2aa1cbd79e PEP8 2020-04-23 14:28:26 +03:00
Eriks Karls
2eecd9fd4d Fixed error preventing wam in second holding if employees had been assigned in the first request 2020-04-23 14:16:33 +03:00
Eriks Karls
2efc9496a0 Fighting also available in other divisions for Maverick players 2020-04-14 18:56:45 +03:00
Eriks Karls
1b5b5f736f Multiple achievements are joined under one notification - use achievementAmount for count 2020-03-27 10:31:39 +02:00
Eriks Karls
4b4ed18cdb Award posting bugfix 2020-03-23 14:38:54 +02:00
Eriks Karls
260344bcbe fix 2020-03-05 10:00:22 +02:00
Eriks Karls
93f2f2887f Added wheel of fortune endpoints, restructured work as manager, limiting log row length to 120 characters 2020-03-03 13:07:39 +02:00
Eriks Karls
7ec15a9645 New endpoints opened 2020-02-27 18:25:35 +02:00
Eriks Karls
e0c09672b1 call to super must include email and password 2020-02-27 18:25:04 +02:00
Eriks Karls
d6a0d5a704 BaseCitizen should have email and password at initialization to be able to login 2020-02-27 18:23:59 +02:00
Eriks Karls
22dc18d80d Leaderboards are now directly available from Citizen instance 2020-02-27 16:03:58 +02:00
Eriks Karls
772c09a2af Citizen.eat() and Citizen.eat_eb() were lost after restructuring 2020-02-27 08:23:27 +02:00
Eriks Karls
70e78023eb Sorted inheritance 2020-02-26 18:42:42 +02:00
Eriks Karls
04bb0be837 Modularity improvements 2020-02-26 18:19:56 +02:00
Eriks Karls
dd2c20cc41 no message 2020-02-26 12:09:45 +02:00
Eriks Karls
b76ea2c4ae Medal notifications 2020-02-26 12:09:36 +02:00
Eriks Karls
b7211b7c75 Notification parsing and deleting 2020-02-26 12:09:03 +02:00
Eriks Karls
07ba1795d3 WIP: Splitting Citizen class into logical pieces for encapsulation, modularity and easier maintenance 2020-02-24 17:20:16 +02:00
Eriks Karls
fd1880c50f Some notifications are still being displayed the old way 2020-02-19 18:52:40 +02:00
Eriks Karls
f6433908b4 New notifications API 2020-02-18 20:11:34 +02:00
Eriks Karls
5c258d7aae Hey Plato! If You're reading this - fix your variable types and there will be 90% less bugs in Your code!!!
{'weaponId': 6, 'weaponQuantity': 0, 'damage': 120}
{'weaponId': '7', 'weaponQuantity': 1185, 'inClip': 7, 'damage': 200}
{'weaponId': 10, 'weaponQuantity': 0, 'damage': 100}
2020-01-26 20:44:21 +02:00
Eriks Karls
0dd1ae9ac5 Too broad exception was cought without notifying about actual error - when Telegram isn't enabled 2020-01-14 13:42:34 +02:00
Eriks Karls
15e6deebda Battle initialization without valid data should be avoided to not run into strange and hard to trace bugs.
Jsonification updates - if simplejson is available some packages are importing simplejson with try-except and later throwing simplejson errors which should be cought when calling .json() on every request.
Fixed error logging
2020-01-13 21:33:50 +02:00