diff --git a/SW/PC/Stopwatch/main.py b/SW/PC/Stopwatch/main.py index df86853..b40d559 100644 --- a/SW/PC/Stopwatch/main.py +++ b/SW/PC/Stopwatch/main.py @@ -137,6 +137,7 @@ class GridWindow(Gtk.ApplicationWindow): css_provider = Gtk.CssProvider() css_provider.load_from_file(Gio.File.new_for_path("style.css")) Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) + self.set_default_size(640, 480) button1 = Gtk.Button(label='addrow') button2 = Gtk.Button(label='rmrow') diff --git a/SW/PC/Stopwatch/order.py b/SW/PC/Stopwatch/order.py new file mode 100644 index 0000000..5b54fb0 --- /dev/null +++ b/SW/PC/Stopwatch/order.py @@ -0,0 +1,23 @@ +import operator +import json + +db="" +res={} + +with open('times.json', 'r') as f: + db = json.load(f) + +for i in db: + try: + res[i] = db[i]["duration"] + print(i, db[i]["duration"]) + except: + print(i) + pass + +#print(res) + +order = dict(sorted(res.items(), key=lambda item: item[1])) + +with open("results.json", 'a') as f: + f.write(json.dumps(order, indent = 4)) \ No newline at end of file diff --git a/SW/PC/Stopwatch/people.json b/SW/PC/Stopwatch/people.json index db7b231..532b18d 100644 --- a/SW/PC/Stopwatch/people.json +++ b/SW/PC/Stopwatch/people.json @@ -1,8 +1,102 @@ { - "1": 1111582085, - "2": 1631957710, - "3": 1112469509, - "4": 1114418469, - "5": 1364550814, - "6": 1632150846 + "1": 1114418469, + "2": 1111554085, + "3": 1112605381, + "4": 1362080126, + "5": 1632101230, + "6": 1114533941, + "7": 1364901054, + "8": 1364587710, + "9": 1364867822, + "10": 1364554558, + "11": 1364968750, + "12": 1111614357, + "13": 1362569198, + "14": 1364867662, + "15": 1112618821, + "16": 1364967150, + "17": 1364592718, + "18": 1364487310, + "19": 458336708, + "20": 1111590293, + "21": 1114448773, + "22": 1364550814, + "23": 1112421509, + "24": 1364529422, + "25": 1364916590, + "26": 455988804, + "27": 1631963022, + "28": 1114508533, + "29": 1364590606, + "30": 1364796894, + "31": 1112489029, + "32": 1114588261, + "33": 1111733589, + "34": 1112469509, + "35": 1632521678, + "36": 1631957710, + "37": 1111682853, + "38": 1111882197, + "39": 1631960974, + "40": 1362260606, + "41": 1364521806, + "42": 1364489406, + "43": 1361969902, + "44": 1364581838, + "45": 1364520526, + "46": 1361806574, + "47": 1364581310, + "48": 1364551150, + "49": 1364916158, + "50": 1364529662, + "51": 1632026766, + "52": 1364588798, + "53": 1631955550, + "54": 1631972606, + "55": 1364797086, + "56": 1364627198, + "57": 1364556446, + "58": 1632070414, + "59": 1631951758, + "60": 1364794654, + "61": 1632101166, + "62": 1361810574, + "63": 1114573589, + "64": 1361967886, + "65": 1632544222, + "66": 1111582085, + "67": 1362569438, + "68": 1364593198, + "69": 1364761406, + "70": 1631927918, + "71": 1364544414, + "72": 1362264958, + "73": 1364767006, + "74": 1364590110, + "75": 1362082334, + "76": 1364799166, + "77": 1632028398, + "78": 1361970078, + "79": 1364485118, + "80": 1364490846, + "81": 1632150846, + "82": 1362569342, + "83": 1362599998, + "84": 1632523854, + "85": 1364765134, + "86": 1631952062, + "87": 1364559822, + "88": 1364783854, + "89": 1362081950, + "90": 1111644021, + "91": 1631959326, + "92": 1364901422, + "93": 1632100830, + "94": 1111707429, + "95": 1632026702, + "96": 1362569022, + "97": 1114560181, + "98": 1364588510, + "99": 1364785486, + "100": 1361969950 } \ No newline at end of file diff --git a/SW/PC/Stopwatch/results.json b/SW/PC/Stopwatch/results.json new file mode 100644 index 0000000..9eb94ec --- /dev/null +++ b/SW/PC/Stopwatch/results.json @@ -0,0 +1,34 @@ +{ + "2": "0:35:59.818971", + "29": "1:10:52.076408", + "14": "1:11:35.670162", + "9": "1:14:40", + "10": "1:16:02.174205", + "12": "1:18:12.521345", + "26": "1:21:24.962008", + "8": "1:23:45.241021", + "5": "1:24:33.080748", + "3": "1:25:36.486060", + "25": "1:26:57.409779", + "27": "1:32:49.493213", + "18": "1:35:04.610546", + "6": "1:35:28.914085", + "21": "1:35:29.494112", + "28": "1:37:56.900763", + "13": "1:39:20.394593", + "17": "1:39:59.664271", + "4": "1:40:15.602185", + "15": "1:41:16.795669", + "20": "1:43:29.166855", + "16": "1:48:28.014745", + "19": "1:48:37.692711", + "30": "1:48:51.712639", + "11": "1:48:56.350571", + "22": "1:49:04.450512", + "31": "2:05:10.107744", + "24": "2:05:33.883454", + "7": "2:05:42.955540", + "32": "2:06:17.053222", + "23": "2:11:50.391043", + "1": "2:24:50.507501" +} diff --git a/SW/PC/Stopwatch/times.json b/SW/PC/Stopwatch/times.json index 2264d69..1655f3d 100644 --- a/SW/PC/Stopwatch/times.json +++ b/SW/PC/Stopwatch/times.json @@ -1,25 +1,160 @@ { "1": { - "start": "27/04/2025, 16:16:45", - "end": "27/04/2025, 17:23:33", - "duration": "1:06:48.649859" - }, - "6": { - "start": "27/04/2025, 16:16:59", - "end": "27/04/2025, 16:39:59", - "duration": "0:23:00.333960" + "start": "31/05/2025, 10:00:08", + "end": "31/05/2025, 12:24:58", + "duration": "2:24:50.507501" }, "2": { - "start": "27/04/2025, 16:17:02", - "end": "27/04/2025, 17:41:24", - "duration": "1:24:22.075440" - }, - "4": { - "start": "27/04/2025, 16:17:06" + "start": "31/05/2025, 10:05:37", + "end": "31/05/2025, 10:41:37", + "duration": "0:35:59.818971" }, "3": { - "start": "27/04/2025, 16:17:08", - "end": "27/04/2025, 16:40:36", - "duration": "0:23:28.059768" + "start": "31/05/2025, 10:10:09", + "end": "31/05/2025, 11:35:45", + "duration": "1:25:36.486060" + }, + "4": { + "start": "31/05/2025, 10:15:14", + "end": "31/05/2025, 11:55:30", + "duration": "1:40:15.602185" + }, + "5": { + "start": "31/05/2025, 10:20:08", + "end": "31/05/2025, 11:44:41", + "duration": "1:24:33.080748" + }, + "6": { + "start": "31/05/2025, 10:25:01", + "end": "31/05/2025, 12:00:30", + "duration": "1:35:28.914085" + }, + "7": { + "start": "31/05/2025, 10:30:01", + "end": "31/05/2025, 12:35:44", + "duration": "2:05:42.955540" + }, + "8": { + "start": "31/05/2025, 10:35:05", + "end": "31/05/2025, 11:58:50", + "duration": "1:23:45.241021" + }, + "9": { + "start": "31/05/2025, 10:39:57" + }, + "10": { + "start": "31/05/2025, 10:42:01", + "end": "31/05/2025, 11:58:03", + "duration": "1:16:02.174205" + }, + "11": { + "start": "31/05/2025, 10:45:03", + "end": "31/05/2025, 12:33:59", + "duration": "1:48:56.350571" + }, + "12": { + "start": "31/05/2025, 10:49:58", + "end": "31/05/2025, 12:08:10", + "duration": "1:18:12.521345" + }, + "13": { + "start": "31/05/2025, 10:55:01", + "end": "31/05/2025, 12:34:21", + "duration": "1:39:20.394593" + }, + "14": { + "start": "31/05/2025, 10:59:57", + "end": "31/05/2025, 12:11:33", + "duration": "1:11:35.670162" + }, + "15": { + "start": "31/05/2025, 11:05:09", + "end": "31/05/2025, 12:46:25", + "duration": "1:41:16.795669" + }, + "16": { + "start": "31/05/2025, 11:10:01", + "end": "31/05/2025, 12:58:29", + "duration": "1:48:28.014745" + }, + "17": { + "start": "31/05/2025, 11:15:00", + "end": "31/05/2025, 12:55:00", + "duration": "1:39:59.664271" + }, + "18": { + "start": "31/05/2025, 11:20:01", + "end": "31/05/2025, 12:55:05", + "duration": "1:35:04.610546" + }, + "19": { + "start": "31/05/2025, 11:25:00", + "end": "31/05/2025, 13:13:38", + "duration": "1:48:37.692711" + }, + "20": { + "start": "31/05/2025, 11:29:58", + "end": "31/05/2025, 13:13:27", + "duration": "1:43:29.166855" + }, + "21": { + "start": "31/05/2025, 11:35:30", + "end": "31/05/2025, 13:11:00", + "duration": "1:35:29.494112" + }, + "22": { + "start": "31/05/2025, 11:40:02", + "end": "31/05/2025, 13:29:06", + "duration": "1:49:04.450512" + }, + "23": { + "start": "31/05/2025, 11:44:59", + "end": "31/05/2025, 13:56:49", + "duration": "2:11:50.391043" + }, + "24": { + "start": "31/05/2025, 11:50:45", + "end": "31/05/2025, 13:56:19", + "duration": "2:05:33.883454" + }, + "25": { + "start": "31/05/2025, 11:55:04", + "end": "31/05/2025, 13:22:02", + "duration": "1:26:57.409779" + }, + "26": { + "start": "31/05/2025, 12:00:00", + "end": "31/05/2025, 13:21:24", + "duration": "1:21:24.962008" + }, + "27": { + "start": "31/05/2025, 12:05:01", + "end": "31/05/2025, 13:37:51", + "duration": "1:32:49.493213" + }, + "28": { + "start": "31/05/2025, 12:10:03", + "end": "31/05/2025, 13:48:00", + "duration": "1:37:56.900763" + }, + "29": { + "start": "31/05/2025, 12:14:58", + "end": "31/05/2025, 13:25:50", + "duration": "1:10:52.076408" + }, + "30": { + "start": "31/05/2025, 12:20:02", + "end": "31/05/2025, 14:08:54", + "duration": "1:48:51.712639" + }, + "31": { + "start": "31/05/2025, 12:50:10", + "end": "31/05/2025, 14:55:20", + "duration": "2:05:10.107744" + }, + "32": { + "start": "31/05/2025, 12:50:13", + "end": "31/05/2025, 14:56:30", + "duration": "2:06:17.053222" } } \ No newline at end of file