fix: revert str UUID

This commit is contained in:
firedotguy
2026-02-06 22:19:56 +03:00
parent 2d27507338
commit f33ed4f76a
2 changed files with 45 additions and 107 deletions

View File

@@ -1,5 +1,4 @@
from itd.request import fetch
from uuid import UUID
def report(token: str, id: UUID, type: str = 'post', reason: str = 'other', description: str = ''):
def report(token: str, id: str, type: str = 'post', reason: str = 'other', description: str = ''):
return fetch(token, 'post', 'reports', {'targetId': id, 'targetType': type, 'reason': reason, 'description': description})