Skip to content

Commit

Permalink
remove superfluous-looking prints
Browse files Browse the repository at this point in the history
  • Loading branch information
nyiyui committed Mar 5, 2024
1 parent 506950e commit c15f73f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions gameserver/models/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __str__(self) -> str:
@classmethod
def get(cls, user: "User", participation: Optional["ContestParticipation"]) -> "UserCache":
assert user is not None
print('get', user, participation)
q = cls.objects.filter(user=user, participation=participation)
if not q:
obj = cls.fill_cache(user, participation)
Expand All @@ -46,7 +45,6 @@ def get(cls, user: "User", participation: Optional["ContestParticipation"]) -> "
@classmethod
def invalidate(cls, user: "User", participation: Optional["ContestParticipation"]) -> None:
assert user is not None
print('invalidate', user, participation)
q = cls.objects.filter(user=user, participation=participation)
obj = cls.fill_cache(user, participation)
if not q:
Expand All @@ -57,7 +55,6 @@ def invalidate(cls, user: "User", participation: Optional["ContestParticipation"
@classmethod
def fill_cache(cls, user: "User", participation: Optional["ContestParticipation"]) -> "UserCache":
assert user is not None
print('fill_cache', user, participation)
if participation is None:
queryset = user._get_unique_correct_submissions().filter(problem__is_public=True)
else:
Expand Down
2 changes: 0 additions & 2 deletions gameserver/views/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ def _create_submission_object(self, form, is_correct=None):
raise TypeError("is_correct must be supplied")
kwargs = {}
if self.object.log_submission_content:
print(form.data)
print(form.data['flag'])
kwargs["content"] = form.data["flag"]
submission = models.Submission.objects.create(
user=self.request.user, problem=self.object, is_correct=is_correct,
Expand Down

0 comments on commit c15f73f

Please sign in to comment.