summaryrefslogtreecommitdiff
path: root/backend/src
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src')
-rw-r--r--backend/src/utilities.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/src/utilities.py b/backend/src/utilities.py
index 92715645..5dea0e94 100644
--- a/backend/src/utilities.py
+++ b/backend/src/utilities.py
@@ -396,4 +396,9 @@ class Utilities:
return log_file.read()
async def upload_log(self, plugin_name: str, log_name: str):
- raise RuntimeError("Not Implemented") \ No newline at end of file
+ text = await self.get_plugin_log_text(plugin_name, log_name)
+ async with ClientSession() as web:
+ res = await web.put("https://lp.deckbrew.xyz", data=text)
+ res.raise_for_status()
+ upload_id = (await res.json())["id"]
+ return f"https://lp.deckbrew.xyz/{upload_id}" \ No newline at end of file