603 Commits

Author SHA1 Message Date
Ēriks Karls
24d81bbadf
Create pythonpackage.yml 2020-03-03 19:16:19 +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
bf5f3d74b3 Remove depricated Config.wt property
Add Config.ot for overtime enabling/disabling
2020-02-26 18:43:27 +02:00
Eriks Karls
70e78023eb Sorted inheritance 2020-02-26 18:42:42 +02:00
Eriks Karls
8dcebdecd2 no message 2020-02-26 18:42:25 +02:00
Eriks Karls
77bcfb3df6 Move commit id to __init__ 2020-02-26 18:41:56 +02:00
Eriks Karls
a01b85154f Bump version: 0.19.4.2 → 0.20.0 2020-02-26 18:29:26 +02:00
Eriks Karls
04bb0be837 Modularity improvements 2020-02-26 18:19:56 +02:00
Eriks Karls
62e265e7e1 COMMIT_ID updater 2020-02-26 18:18:47 +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
ce02a39158 Move eRepublik API helper class to seperate file and split up class into logical pieces 2020-02-24 17:19:06 +02:00
Eriks Karls
a5dfc07018 Bump version: 0.19.4.1 → 0.19.4.2 v0.19.4.2 2020-02-20 12:43:51 +02:00
Eriks Karls
e6ce02fc09 requirement update 2020-02-20 12:37:15 +02:00
Eriks Karls
149071ae86 Bump version: 0.19.4 → 0.19.4.1 v0.19.4.1 2020-02-20 12:32:13 +02:00
Eriks Karls
72375f40ca Dev versioning 2020-02-20 09:58:03 +02:00
Eriks Karls
fd1880c50f Some notifications are still being displayed the old way 2020-02-19 18:52:40 +02:00
Eriks Karls
f73f2b7b9f Bump version: 0.19.3 → 0.19.4 v0.19.4 2020-02-18 20:12:02 +02:00
Eriks Karls
f6433908b4 New notifications API 2020-02-18 20:11:34 +02:00
Eriks Karls
2fd317153f Bump version: 0.19.2 → 0.19.3 v0.19.3 2020-01-27 01:54:03 +02:00
Eriks Karls
256a180bd6 if error occures on main thread - simplify error logging 2020-01-27 01:53:52 +02:00
Eriks Karls
c7dbeb2078 Bump version: 0.19.1 → 0.19.2 v0.19.2 2020-01-26 20:45:18 +02:00
Eriks Karls
8e5ae0320a Merge branch 'bugfix'
* bugfix:
  Hey Plato! If You're reading this - fix your variable types and there will be 90% less bugs in Your code!!!
  Some TelegramBot tweaks
  when full energy update citizen info would stop working because trying to get timedelta from now - _last_full_energy_report
  Too broad exception was cought without notifying about actual error - when Telegram isn't enabled
2020-01-26 20:44:43 +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
Ēriks Karls
75b43fc455
Merge pull request #2 from eeriks/eeriks-patch-1
GHSA-7fcj-pq9j-wh2r
2020-01-17 15:41:02 +02:00
Ēriks Karls
2362dc51e8
GHSA-7fcj-pq9j-wh2r
https://github.com/advisories/GHSA-7fcj-pq9j-wh2r
2020-01-17 15:40:34 +02:00
Eriks Karls
a2cf479135 Some TelegramBot tweaks 2020-01-16 13:49:24 +02:00
Eriks Karls
00b87dc832 when full energy update citizen info would stop working because trying to get timedelta from now - _last_full_energy_report 2020-01-14 13:43:10 +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
76bd40c655 Bump version: 0.19.0 → 0.19.1 v0.19.1 2020-01-13 21:33:58 +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
Eriks Karls
69d0e7df0a Bump version: 0.18.3 → 0.19.0 v0.19.0 2020-01-13 10:40:33 +02:00
Eriks Karls
4f92894ab6 DocUpdate 2020-01-13 10:40:22 +02:00
Eriks Karls
9c64bfac0f Merge branch 'inventory_updates'
* inventory_updates:
  Python 3.8, isort, requirement update
  Representation of Citizen class
  Created method for current products on sale. Updated inventory to also include products on sale

# Conflicts:
#	erepublik/citizen.py
2020-01-13 10:31:05 +02:00
Eriks Karls
1f07f2e270 Update:
Citizen.set_default_weapon() - eRepublik should return list with all available weapon qualities, but when a battle is just launched, they return only dict with barehands
Citizen.fight() - no longer calls self.set_default_weapon()
Citizen.find_battle_and_fight() - now calls self.set_default_weapon() just before fighting
Citizen.update_war_info() - returns previous battle list if responses 'last_updated' isn't more than 30s old

New:
Citizen.get_battle_for_war(war_id) - returns Battle instance for specific war, if battle is active for given war
2020-01-13 10:28:42 +02:00
Eriks Karls
71d204843d Python 3.8, isort, requirement update 2020-01-09 12:03:11 +02:00
Eriks Karls
d9305214eb Representation of Citizen class 2020-01-07 19:55:31 +02:00
Eriks Karls
5556d5f772 Created method for current products on sale. Updated inventory to also include products on sale 2020-01-07 16:28:42 +02:00
Eriks Karls
1c47d169d2 Bump version: 0.18.2 → 0.18.3 v0.18.3 2020-01-07 11:32:59 +02:00
Eriks Karls
ef44787bad make clean-pyc removes log/ and debug/ run 'artifacts' 2020-01-07 11:32:48 +02:00
Eriks Karls
42431134e1 UA update 2020-01-07 11:30:40 +02:00
Eriks Karls
bedaeeefd1 Battle division update 2020-01-07 11:15:40 +02:00
Eriks Karls
bbf304aa99 Bump version: 0.18.1 → 0.18.2 v0.18.2 2020-01-05 10:53:39 +02:00