From f309353665cc4f7fba2bb0b535bde615442c0b78 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 25 Nov 2024 20:27:39 +0100 Subject: [PATCH] Deleded pycache and added timeout for sync. --- src/drstats/__init__.py | 0 src/drstats/__main__.py | 0 .../__pycache__/__init__.cpython-312.pyc | Bin 150 -> 0 bytes src/drstats/__pycache__/db.cpython-312.pyc | Bin 13659 -> 0 bytes .../__pycache__/devrant.cpython-312.pyc | Bin 2958 -> 0 bytes .../__pycache__/statistics.cpython-312.pyc | Bin 16112 -> 0 bytes src/drstats/__pycache__/sync.cpython-312.pyc | Bin 3619 -> 0 bytes src/drstats/sync.py | 24 ++++++++++++------ 8 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 src/drstats/__init__.py delete mode 100644 src/drstats/__main__.py delete mode 100644 src/drstats/__pycache__/__init__.cpython-312.pyc delete mode 100644 src/drstats/__pycache__/db.cpython-312.pyc delete mode 100644 src/drstats/__pycache__/devrant.cpython-312.pyc delete mode 100644 src/drstats/__pycache__/statistics.cpython-312.pyc delete mode 100644 src/drstats/__pycache__/sync.cpython-312.pyc diff --git a/src/drstats/__init__.py b/src/drstats/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/drstats/__main__.py b/src/drstats/__main__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/drstats/__pycache__/__init__.cpython-312.pyc b/src/drstats/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index ae4e685720d40ae4f52fbd9f6d42e9ef207dd154..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 150 zcmX@j%ge<81SP6Y=^*+sh(HIQS%4zb87dhx8U0o=6fpsLpFwJVnd)cc=ceixrIzI9 z7wH!iuMJ~J<~BtBlRpz;@oO>TZlX-=wL5i8IXMj$Q* OF+MUgGBOr116crXe>W8u=QXoaHEXC2%Ay=`jHW(~-MkM9s zE`4WKBsWs4CI%`)3QVCu<)BFHhdh{2f+SDPLtp&nAV5oHnVQ`?fPwZQ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i$ze^n5>vv@ff9gnZ?MIVIa1+G= znZmmilJiJj1L8f%?gnsUX)g>i`E#uG7eHcd1b1Bs#^Z9k{hxl!|L8-vGmJeS`ohB` z-3VGEcsGs&sS+3u}& IAT(b5H=j8}xBvhE diff --git a/src/drstats/__pycache__/devrant.cpython-312.pyc b/src/drstats/__pycache__/devrant.cpython-312.pyc deleted file mode 100644 index f0685fde14aac1e3d5a413fb7f81367b8fb26249..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2958 zcmbtW&u?EWFXmMK#EG03mphZ=M3Phq+XpyCiFDuQR)D zh-FJ0I5;QDDXxT6r1p>~s6zbs)k3(ab*d#}6$(D;!P7<}8lVx&&*z_i`l{GnB zouiAgq1H~tGf<|TubEX2rd%&`_KQ!ZGG8$_2%K`}%3|hAZ_X-b&Q;kpCv!CKdBu5S zD!z_3X7Zt>5T#CM^9(eWi9=v>l9O#IM~8?l-y}H&YB)kpg<64HvsJ(t^fah-sAEtM zE$YS)k9AH|+dmfs75{^5c41**%I+RBYgOEAzH=3^Gdh97Z}Ug7f1MP>a6i~m4F&>S zCrVvf>zo_M8?r6i)Rh`EP&*4qL5o^jbzQF0$c+sp7>Z^Jf}*Gw)^(+j=pVsev};4H ztCxwP%+$21?=U~hsa2`0?{7M0Us5X3a#{auBh7$qI!5$cm%_CZhrrNp(4Ly)93`M1$5T zQ-KtUy~|_~AIds@%vDq?pW*vABtC@q6C;KqTmx^xV*yv)vh7@FZ@?-a3CGwEJ(7;T zFg@nZx@D_ao9J~68tYC?;`he@z(1+6<>c*TE4X`UMSYN(T3KkP-fybE?@B!!-P=mv zKHdC$gOWr#^g^#Zb-nNt7}_~xx5D)Q%hNz0zq~~C2C{H$G7u(6x1G=L1=*sg1D~3i?x-{K|k)3I3 zD5xw#HRv6sp>EN(t-2_6wT~3-8S0|#s4lU34Dtq$G90OkASDzRC8XvMTmh1VTXG>| z_}AP@4^OYboS}z0g6r7Z2>AbDTegr^d_7pi3u14=NG&}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H&& z3|9=xJnOc57;_d)*&-WH@{BPgyH5$fP?auc5}L4+pvJ4Ki3AI`G08LC_KV$9yMLLu zlgfK{K9t(3s@R=)-n;#gw1Ybf zAw4LwCyw)yD*UDX5{;*0$o%Lo(2 diff --git a/src/drstats/sync.py b/src/drstats/sync.py index bdc74f7..7145bde 100644 --- a/src/drstats/sync.py +++ b/src/drstats/sync.py @@ -40,21 +40,29 @@ async def get_recent_rants(start_from=1, page_size=10): start_from += page_size +async def _sync_rants(start_from, page_size,count): + async for rant in get_recent_rants(start_from, page_size): + start_from += page_size + count += 1 + rant["tags"] = json.dumps(rant["tags"]) + db["rants"].upsert(rant, ["id"]) + print(f"Upserted {count} rant(s).") + return count + async def sync_rants(): count = 0 start_from = 0 page_size = 20 - try: - async for rant in get_recent_rants(start_from, page_size): + while True: + try: + count += await asyncio.wait_for(_sync_rants(start_from, page_size,count),5) start_from += page_size - count += 1 - rant["tags"] = json.dumps(rant["tags"]) - db["rants"].upsert(rant, ["id"]) - print(f"Upserted {count} rant(s).") - except: - print("Rate limit of server exceeded. That's normal.s") + except Exception as ex: + print(ex) + print("If exception described above is an timeout related error, it's due ratelimiting and considered OK.") + break async def sync_comments():