Commit Graph

28 Commits (ee1104e36ee49bc3659b21d3f5247481e27eaa8a)

Author SHA1 Message Date
Lertsenem ee1104e36e Fix WFT typo 2020-07-09 09:52:20 +02:00
Lertsenem d700a351f9 Move templates dir up from res.
Templates should not be considered 'resources'.
2020-07-09 09:16:12 +02:00
Lertsenem 11c9528c7a Ignore generated lkrz files
Rename the sample lkrz file too.
2020-07-08 07:55:12 +02:00
Lertsenem 05cb2fa1e9 Add context and fix typos for template generation 2020-07-08 07:53:21 +02:00
Lertsenem 7dc1a4f48b Fix template typos 2020-07-08 07:53:06 +02:00
Lertsenem b73f10a8ba Fix typos in CHARACTERS translation dict 2020-07-08 07:52:37 +02:00
Lertsenem dccde354bd First kinda working version
We can download the infos from smash.gg, but the SVG generation fails
for now.
2020-07-07 16:13:56 +02:00
Lertsenem 874188a20d Update queries 2020-07-07 16:13:23 +02:00
Lertsenem ba7843e3f5 Fix run_query() use of args by adding arguments
run_query() was copied from elsewhere and relied on args being
available to get the token and proxy config. Those are now passed as
function arguments.
2020-07-07 16:11:51 +02:00
Lertsenem e58ba0a3b3 Update Tournament location in conf()
Now with full address, city and country code.
2020-07-07 16:11:12 +02:00
Lertsenem 67fff05bb8 Fix Tournament slug
'slug' in the smash.gg API means all the string
"tournament/tournament-slug", but we only want the "tournament-slug"
part.
2020-07-07 16:10:14 +02:00
Lertsenem 290445a26d Add get_mains() method
Returns the list of chars used ordered by the number of time they were
used.
2020-07-07 16:09:22 +02:00
Lertsenem f5350d506f Order Player chars list based on choices in conf() 2020-07-07 16:08:47 +02:00
Lertsenem a21e8f80b6 Fix Player __init__
Players were all sharing the same chars attribute.
Use int instead of strings for placement and seeds.
2020-07-07 16:07:47 +02:00
Lertsenem 19a1c293c3 Add character translation in smashgg
Translate smash.gg weird characters ids into readable strings
2020-07-07 16:07:06 +02:00
Lertsenem 689261a720 Add imports in smashgg 2020-07-07 16:06:25 +02:00
Lertsenem 2d889db4f1 Rename template rebootlyon 2020-07-07 13:38:34 +02:00
Lertsenem 1d089466ae Modify getCharacters query to use entrantIds
instead of playerIds
2020-07-07 10:09:57 +02:00
Lertsenem 199822d44f Add rebootlyon template 2020-07-07 01:55:54 +02:00
Lertsenem 6da2b5e27c Add basic argument parsing in main 2020-07-07 01:54:42 +02:00
Lertsenem f4116f46cb Add Player and Tournament classes in smashgg
These classes do not match 1:1 with their smash.gg equivalent, but are
more specific to this app.
2020-07-07 01:52:16 +02:00
Lertsenem 01533d3d7b Add more infos in the getTournament* queries
Ask for player twitterHandle, tournament venue and date, etc.
2020-07-07 01:51:04 +02:00
Lertsenem 997cfc153c Refine the lkrz format
prefix players section with "player" for ease of use. Replace 'link' in
the 'Tournament' section by a simpler 'slug'.
2020-07-07 01:49:45 +02:00
Lertsenem 660fa7a7a9 Add basic smash.gg request function 2020-07-07 00:48:14 +02:00
Lertsenem e9df751d9e Add smashgg requests
- get Tournaments top8 (or topX) by slug or id
- get characters selections by Tournament id and Players ids
2020-07-07 00:38:59 +02:00
Lertsenem daf18f10cb Add version.py 2020-07-06 10:39:39 +02:00
Lertsenem a7d6da5146 Add sample lkrz file 2020-07-04 22:17:56 +02:00
Lertsenem 1423716f0e Initial Commit 2020-07-04 19:46:35 +02:00