Skip to content

Commit

Permalink
Remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 25, 2025
1 parent 7249886 commit c4a5fbb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions netkan/netkan/webhooks/spacedock_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import json
from itertools import zip_longest
from typing import Tuple, TYPE_CHECKING
import logging
from flask import Blueprint, current_app, request
from werkzeug.datastructures import ImmutableMultiDict

Expand Down Expand Up @@ -47,10 +46,6 @@ def add_hook(game_id: str) -> Tuple[str, int]:


def batch_message(raw: 'ImmutableMultiDict[str, str]', game_id: str) -> SendMessageBatchRequestEntryTypeDef:
for key in ('username', 'user_github', 'user_forum_id',
'user_forum_username', 'email', 'user_url'):
logging.error('SpaceDockAdder form list %s: %s',
key, json.dumps(raw.getlist(key)))
body = json.dumps({**raw,
# Turn the separate user property lists into a list of user dicts so JSON can encode it
# (the original properties will only have the first user)
Expand All @@ -67,7 +62,6 @@ def batch_message(raw: 'ImmutableMultiDict[str, str]', game_id: str) -> SendMess
raw.getlist('user_forum_username'),
raw.getlist('email'),
raw.getlist('user_url'))]})
logging.error('SpaceDockAdder queue message body: %s', body)
return {
'Id': '1',
'MessageBody': body,
Expand Down

0 comments on commit c4a5fbb

Please sign in to comment.