forked from STOCD/OSCR-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for recalculating ladder data and add build detection support. (S…
…TOCD#21) * Added advanced lookups for ladder data. * Added advanced filtering on Player, Ladder Name, Ladder Difficulty * Added support for OSCR 2024.3b40 * Included type hint for rank field to fix bug in generated client. * Fixed typo in Jupiter Station Showdown * Updated to add support for build field. * Updated requirements.
- Loading branch information
Showing
6 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,3 +168,4 @@ client | |
media | ||
staticfiles | ||
.vercel | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import logging | ||
|
||
from combatlog.models import CombatLog | ||
from django.core.management.base import BaseCommand | ||
|
||
LOGGER = logging.getLogger("django") | ||
|
||
|
||
class Command(BaseCommand): | ||
help = "Recalculates Combat Log Metadata" | ||
|
||
def handle(self, *args, **options): | ||
for combatlog in CombatLog.objects.all(): | ||
try: | ||
combatlog.update_metadata_from_remote() | ||
except Exception as e: | ||
LOGGER.info(f"{e}: {combatlog}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86b3e6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
oscr-server – ./
oscr-server-git-main-krausts-projects.vercel.app
oscr-server-krausts-projects.vercel.app
oscr-server.vercel.app