online round events implenments #13

Open
UncleJim wants to merge 16 commits from UncleJim/artemis:idac_rounds_impl into idac
Contributor
No description provided.
UncleJim added 12 commits 2024-05-04 06:45:19 +00:00
UncleJim added 2 commits 2024-05-07 04:30:11 +00:00
UncleJim added 1 commit 2024-05-07 06:50:45 +00:00
Dniel97 reviewed 2024-05-09 19:30:40 +00:00
@ -0,0 +128,4 @@
tmp = {}
tmp["round_id_in_json"] = round_id
tmp["name"] = round_data["round_event_nm"]
tmp["season"] = 2 # default season 2
Owner

Please don't hardcode the season and make it a default argument

Please don't hardcode the season and make it a default argument
Dniel97 reviewed 2024-05-09 19:33:18 +00:00
@ -3029,0 +3173,4 @@
car["l_no"] = data.pop("l_no")
await self.data.item.put_car(user_id, self.version, car)
else:
data.pop("style_car_id")
Owner

Always use pop and dont just pop it inside the if AND inside the else

Always use pop and dont just pop it inside the if AND inside the else
Dniel97 reviewed 2024-05-09 19:33:43 +00:00
@ -163,1 +162,4 @@
dbdump-*.json
/.vs
/titles/id8
Owner

Is .gitignore really needed?

Is .gitignore really needed?
Author
Contributor

No

No
Dniel97 reviewed 2024-05-09 19:34:43 +00:00
@ -152,0 +166,4 @@
"idac",
"round_event",
"enabled_round",
default="S1R1",
Owner

Does it also work with S1R10? I would prefer a zero padded round (maybe even season?)

Does it also work with S1R10? I would prefer a zero padded round (maybe even season?)
Author
Contributor

it will work with any name of the round json file, as long as the context is formated with keys what the game want. because the method only read round_event_id of the json file and self.version as identification of round event instead of prasing the name of it.

it will work with any name of the round json file, as long as the context is formated with keys what the game want. because the method only read `round_event_id` of the json file and `self.version` as identification of round event instead of prasing the name of it.
UncleJim added 1 commit 2024-05-10 03:12:32 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b UncleJim-idac_rounds_impl idac
git pull idac_rounds_impl

Step 2:

Merge the changes and update on Gitea.
git checkout idac
git merge --no-ff UncleJim-idac_rounds_impl
git push origin idac
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dniel97/artemis#13
No description provided.