Commit Graph

  • 2eecd9fd4d Fixed error preventing wam in second holding if employees had been assigned in the first request Eriks Karls 2020-04-23 14:16:33 +03:00
  • 2efc9496a0 Fighting also available in other divisions for Maverick players Eriks Karls 2020-04-14 18:56:45 +03:00
  • 1b5b5f736f Multiple achievements are joined under one notification - use achievementAmount for count Eriks Karls 2020-03-27 10:31:39 +02:00
  • 4b4ed18cdb Award posting bugfix Eriks Karls 2020-03-23 14:38:54 +02:00
  • d928ffc8df log message formatting Eriks Karls 2020-03-05 13:05:37 +02:00
  • 260344bcbe fix Eriks Karls 2020-03-05 10:00:22 +02:00
  • d4a3719645 telegram queue never cleared Eriks Karls 2020-03-04 11:34:03 +02:00
  • 98947e6bbe
    Update pythonpackage.yml Ēriks Karls 2020-03-03 19:18:33 +02:00
  • 24d81bbadf
    Create pythonpackage.yml Ēriks Karls 2020-03-03 19:16:19 +02:00
  • 93f2f2887f Added wheel of fortune endpoints, restructured work as manager, limiting log row length to 120 characters Eriks Karls 2020-03-03 13:07:39 +02:00
  • 7ec15a9645 New endpoints opened Eriks Karls 2020-02-27 18:25:35 +02:00
  • e0c09672b1 call to super must include email and password Eriks Karls 2020-02-27 18:25:04 +02:00
  • d6a0d5a704 BaseCitizen should have email and password at initialization to be able to login Eriks Karls 2020-02-27 18:23:59 +02:00
  • 22dc18d80d Leaderboards are now directly available from Citizen instance Eriks Karls 2020-02-27 16:03:58 +02:00
  • 772c09a2af Citizen.eat() and Citizen.eat_eb() were lost after restructuring Eriks Karls 2020-02-27 08:23:27 +02:00
  • bf5f3d74b3 Remove depricated Config.wt property Add Config.ot for overtime enabling/disabling Eriks Karls 2020-02-26 18:43:27 +02:00
  • 70e78023eb Sorted inheritance Eriks Karls 2020-02-26 18:42:42 +02:00
  • 8dcebdecd2 no message Eriks Karls 2020-02-26 18:42:25 +02:00
  • 77bcfb3df6 Move commit id to __init__ Eriks Karls 2020-02-26 18:41:56 +02:00
  • a01b85154f Bump version: 0.19.4.2 → 0.20.0 Eriks Karls 2020-02-26 18:29:26 +02:00
  • 04bb0be837 Modularity improvements Eriks Karls 2020-02-26 18:19:56 +02:00
  • 62e265e7e1 COMMIT_ID updater Eriks Karls 2020-02-26 18:18:47 +02:00
  • dd2c20cc41 no message Eriks Karls 2020-02-26 12:09:45 +02:00
  • b76ea2c4ae Medal notifications Eriks Karls 2020-02-26 12:09:36 +02:00
  • b7211b7c75 Notification parsing and deleting Eriks Karls 2020-02-26 12:09:03 +02:00
  • 07ba1795d3 WIP: Splitting Citizen class into logical pieces for encapsulation, modularity and easier maintenance Eriks Karls 2020-02-24 17:20:16 +02:00
  • ce02a39158 Move eRepublik API helper class to seperate file and split up class into logical pieces Eriks Karls 2020-02-24 17:19:06 +02:00
  • a5dfc07018 Bump version: 0.19.4.1 → 0.19.4.2 v0.19.4.2 Eriks Karls 2020-02-20 12:43:51 +02:00
  • e6ce02fc09 requirement update Eriks Karls 2020-02-20 12:37:15 +02:00
  • 149071ae86 Bump version: 0.19.4 → 0.19.4.1 v0.19.4.1 Eriks Karls 2020-02-20 12:32:13 +02:00
  • 72375f40ca Dev versioning Eriks Karls 2020-02-20 09:58:03 +02:00
  • fd1880c50f Some notifications are still being displayed the old way Eriks Karls 2020-02-19 18:52:40 +02:00
  • f73f2b7b9f Bump version: 0.19.3 → 0.19.4 v0.19.4 Eriks Karls 2020-02-18 20:12:02 +02:00
  • f6433908b4 New notifications API Eriks Karls 2020-02-18 20:11:34 +02:00
  • 2fd317153f Bump version: 0.19.2 → 0.19.3 v0.19.3 Eriks Karls 2020-01-27 01:54:03 +02:00
  • 256a180bd6 if error occures on main thread - simplify error logging Eriks Karls 2020-01-27 01:53:52 +02:00
  • c7dbeb2078 Bump version: 0.19.1 → 0.19.2 v0.19.2 Eriks Karls 2020-01-26 20:45:18 +02:00
  • 8e5ae0320a Merge branch 'bugfix' Eriks Karls 2020-01-26 20:44:43 +02:00
  • 5c258d7aae Hey Plato! If You're reading this - fix your variable types and there will be 90% less bugs in Your code!!! Eriks Karls 2020-01-26 20:44:21 +02:00
  • 75b43fc455
    Merge pull request #2 from eeriks/eeriks-patch-1 Ēriks Karls 2020-01-17 15:41:02 +02:00
  • 2362dc51e8
    GHSA-7fcj-pq9j-wh2r Ēriks Karls 2020-01-17 15:40:34 +02:00
  • a2cf479135 Some TelegramBot tweaks Eriks Karls 2020-01-16 13:49:24 +02:00
  • 00b87dc832 when full energy update citizen info would stop working because trying to get timedelta from now - _last_full_energy_report Eriks Karls 2020-01-14 13:43:10 +02:00
  • 0dd1ae9ac5 Too broad exception was cought without notifying about actual error - when Telegram isn't enabled Eriks Karls 2020-01-14 13:42:34 +02:00
  • 76bd40c655 Bump version: 0.19.0 → 0.19.1 v0.19.1 Eriks Karls 2020-01-13 21:33:58 +02:00
  • 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 Eriks Karls 2020-01-13 21:33:50 +02:00
  • 69d0e7df0a Bump version: 0.18.3 → 0.19.0 v0.19.0 Eriks Karls 2020-01-13 10:40:33 +02:00
  • 4f92894ab6 DocUpdate Eriks Karls 2020-01-13 10:40:22 +02:00
  • 9c64bfac0f Merge branch 'inventory_updates' Eriks Karls 2020-01-13 10:31:05 +02:00
  • 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 Eriks Karls 2020-01-13 10:28:42 +02:00
  • 71d204843d Python 3.8, isort, requirement update Eriks Karls 2020-01-09 12:03:11 +02:00
  • d9305214eb Representation of Citizen class Eriks Karls 2020-01-07 19:55:31 +02:00
  • 5556d5f772 Created method for current products on sale. Updated inventory to also include products on sale Eriks Karls 2020-01-07 16:28:42 +02:00
  • 1c47d169d2 Bump version: 0.18.2 → 0.18.3 v0.18.3 Eriks Karls 2020-01-07 11:32:59 +02:00
  • ef44787bad make clean-pyc removes log/ and debug/ run 'artifacts' Eriks Karls 2020-01-07 11:32:48 +02:00
  • 42431134e1 UA update Eriks Karls 2020-01-07 11:30:40 +02:00
  • bedaeeefd1 Battle division update Eriks Karls 2020-01-07 11:15:40 +02:00
  • bbf304aa99 Bump version: 0.18.1 → 0.18.2 v0.18.2 Eriks Karls 2020-01-05 10:53:39 +02:00
  • a2447959e7 fight must receive battle id as int, added warnings support Eriks Karls 2020-01-05 10:53:26 +02:00
  • 700bd8d98e Bump version: 0.18.0 → 0.18.1 v0.18.1 Eriks Karls 2020-01-02 22:43:01 +02:00
  • 3599dc40fc More logging, Citizen.get_raw_surplus() fixed and moved to Citizen.my_companies.get_wam_raw_usage() Eriks Karls 2020-01-02 22:42:40 +02:00
  • 6ba727a781 promo spam loop Eriks Karls 2020-01-02 18:49:38 +02:00
  • 7f1829a5d7 Bump version: 0.17.3 → 0.18.0 v0.18.0 Eriks Karls 2019-12-18 16:26:10 +02:00
  • e374aa8a54 Implemented division switching, improved multi bomb deploy with auto traveling, Citizen.fight() simplified battle data gathering logic -> Citizen.shoot logic improved Citizen.all_battles are now defaultdict with default value of empty/invalid battle, for times when trying to do things with battle which is not in all_battle dict Eriks Karls 2019-12-18 16:25:52 +02:00
  • 7edfa3b004 Bump version: 0.17.2 → 0.17.3 v0.17.3 Eriks Karls 2019-12-18 11:45:02 +02:00
  • 12aee23739 Variable and method redeclaration Eriks Karls 2019-12-18 11:44:18 +02:00
  • b7f8182ef5 Bump version: 0.17.1 → 0.17.2 v0.17.2 Eriks Karls 2019-12-13 19:32:29 +02:00
  • 39093accd0 Type hinting. Class parameter defined lists where shared accross instances. Eriks Karls 2019-12-13 19:30:43 +02:00
  • aba8c15fd3 AutoPost medals Eriks Karls 2019-12-03 15:22:35 +02:00
  • f294506a2d Updated wars list, added default weapon choosing (q7 - ground, bare hands - air) Eriks Karls 2019-12-03 09:52:53 +02:00
  • fd56c6c389 By default sort battles by time Eriks Karls 2019-12-03 09:44:14 +02:00
  • 4f613ee5ac remvoed unused variables Eriks Karls 2019-12-03 09:43:55 +02:00
  • a7dd528597 Citizen get() and post() signature update, check if server isn't compaining about request flooding Eriks Karls 2019-12-03 09:42:51 +02:00
  • 24c755d414 code style Eriks Karls 2019-12-03 09:41:07 +02:00
  • 13b639dc5a Bump version: 0.17.0 → 0.17.1 v0.17.1 Eriks Karls 2019-11-21 14:04:49 +02:00
  • ec1141a46e set serialization Eriks Karls 2019-11-21 14:04:43 +02:00
  • 77170433c2 Bump version: 0.16.1 → 0.17.0 v0.17.0 Eriks Karls 2019-11-21 11:12:49 +02:00
  • 4736f70203 History update Eriks Karls 2019-11-21 11:12:43 +02:00
  • 48a27997ac Bump version: 0.16.0 → 0.16.1 v0.16.1 Eriks Karls 2019-11-21 11:10:15 +02:00
  • 90bec82630 12th anniversary minimal methods Eriks Karls 2019-11-21 11:06:29 +02:00
  • aedfbf4465 12th anniversary endpoints Eriks Karls 2019-11-21 10:42:55 +02:00
  • 66f459c692 Inventory structure update Eriks Karls 2019-10-30 19:42:05 +02:00
  • ef27960ff1 no message Eriks Karls 2019-10-30 19:35:40 +02:00
  • c48af9a891 Thread stopping Eriks Karls 2019-10-30 18:16:18 +02:00
  • 1abfdb71ac Code cleanup and serialization improvements Eriks Karls 2019-10-30 16:55:33 +02:00
  • e060f67666 More inventory structure updates Eriks Karls 2019-10-29 16:06:07 +02:00
  • 06d8d1c0b5 Telegram threading queue has been messing with error reporting Eriks Karls 2019-10-29 16:05:22 +02:00
  • adda8dcb54 Structure requests by year/month/date folders, to keep requests in cleaner format. The same medal kind (Maverick div BHs) can have different reward value - group them by kind-reward. Citizen.post bugfix (with no data and json arguments) TODO: Must check where post is called without data or json Eriks Karls 2019-10-28 14:17:45 +02:00
  • c7f084436d Inventory structure update Eriks Karls 2019-10-18 18:18:39 +03:00
  • 94a87091a4 Allow full energy reports once every half an hour Eriks Karls 2019-10-17 19:15:17 +03:00
  • c0b97f112d TelegramBot.send_message should always append to send queue Eriks Karls 2019-10-16 15:10:38 +03:00
  • 3d895bd085 Damage calculation Eriks Karls 2019-10-16 15:09:28 +03:00
  • d548d1bbf1 Hit calculation can be static Eriks Karls 2019-10-15 20:03:38 +03:00
  • b1eefcc662 CSRF Attack Detecked loop on POST requests. Eriks Karls 2019-10-15 20:03:22 +03:00
  • 41798c446c Return successfully transfered item count Eriks Karls 2019-10-15 11:28:56 +03:00
  • 074da3adbe Telegram reporter queue bug Eriks Karls 2019-10-14 19:21:00 +03:00
  • 6c9a9e920d Delay telegram notification sending by appending multiple messages to queue and after minute of inactivity clear the queue by sending all messages Eriks Karls 2019-10-14 13:44:31 +03:00
  • ffa2fc109c Travel for fighting fixed Eriks Karls 2019-10-14 13:14:30 +03:00
  • f7f4028f32 Revert "Travel for fighting" Eriks Karls 2019-10-14 13:03:36 +03:00
  • e91705ce90 no message Eriks Karls 2019-10-14 13:03:19 +03:00