From a6fda1705e7bda6c1ebe387bec386fd251263841 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Sun, 22 May 2022 13:59:31 +0300 Subject: [PATCH] Remove obosolute documentation from code --- main.py | 22 ---------------------- utils.py | 56 -------------------------------------------------------- 2 files changed, 78 deletions(-) diff --git a/main.py b/main.py index 4e3c8a8..096463e 100644 --- a/main.py +++ b/main.py @@ -1,25 +1,3 @@ -""" -Run by third side (i.e. cron) -Request all or specified combination of platform + activity -Write results to sqlite DB in journal like format - - -AP - appropriate field from json -DB structure -states: -action_id integer - id of insertion, all records from one request will have the same action_id -leaderboard_type string - (AP) -platform string - platform of data -squadron_id integer - (squadron field) -score integer - (AP) -percentile integer - (AP) -rank integer - (AP) -name string - (AP) -tag string - (AP) -timestamp - inserts by DB, default TIMESTAMP - -""" - import requests from model import model # from EDMCLogging import get_main_logger diff --git a/utils.py b/utils.py index 03fb2d2..38615a0 100644 --- a/utils.py +++ b/utils.py @@ -30,9 +30,6 @@ except FileNotFoundError: # ofc I could do it without enums, I just wanted to try them class Platform(enum.Enum): - """ - Enumeration for platforms - """ PC = 'PC' PS4 = 'PS4' XBOX = 'XBOX' @@ -162,56 +159,3 @@ def measure(function: callable, name_to_display: str): return result return decorated - - -activity_table_html_template = """ - -
- - - - - - -{body}
- -"""[1:]