mdbq 0.2.3__py3-none-any.whl → 0.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
mdbq/company/copysh.py
CHANGED
@@ -9,6 +9,8 @@ import datetime
|
|
9
9
|
import shutil
|
10
10
|
import time
|
11
11
|
import re
|
12
|
+
|
13
|
+
from dateutil.utils import today
|
12
14
|
from mdbq.bdup import bdup
|
13
15
|
from mdbq.aggregation import aggregation
|
14
16
|
from mdbq.config import update_conf
|
@@ -115,7 +117,12 @@ class TbFiles:
|
|
115
117
|
else:
|
116
118
|
self.before_max_time = [] # 重置变量,以免越来越占内存
|
117
119
|
self.before_max_time.append(now_max_time)
|
120
|
+
|
118
121
|
now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S ')
|
122
|
+
res = self.check_upload_mysql()
|
123
|
+
if not res:
|
124
|
+
print(f'检测到源文件修改, 但今日已经更新过, 不再更新')
|
125
|
+
return
|
119
126
|
print(f'{now}pandas数据源文件修改, 触发同步 ({self.sleep_minutes}分钟后开始)')
|
120
127
|
|
121
128
|
if not os.path.exists(self.data_path):
|
@@ -306,11 +313,9 @@ def main():
|
|
306
313
|
w.update_config(option='ch_record', new_value='False')
|
307
314
|
time.sleep(60)
|
308
315
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
t.tb_file()
|
313
|
-
time.sleep(600)
|
316
|
+
t.sleep_minutes = 30 # 同步前休眠时间
|
317
|
+
t.tb_file()
|
318
|
+
time.sleep(600) # 检测间隔
|
314
319
|
|
315
320
|
|
316
321
|
if __name__ == '__main__':
|
@@ -8,7 +8,7 @@ mdbq/bdup/bdup.py,sha256=LAV0TgnQpc-LB-YuJthxb0U42_VkPidzQzAagan46lU,4234
|
|
8
8
|
mdbq/clean/__init__.py,sha256=A1d6x3L27j4NtLgiFV5TANwEkLuaDfPHDQNrPBbNWtU,41
|
9
9
|
mdbq/clean/data_clean.py,sha256=33OmeQFl9AW21P5EOay52W_S8DF96H5oHwCg4fSuBxA,85359
|
10
10
|
mdbq/company/__init__.py,sha256=qz8F_GsP_pMB5PblgJAUAMjasuZbOEp3qQOCB39E8f0,21
|
11
|
-
mdbq/company/copysh.py,sha256=
|
11
|
+
mdbq/company/copysh.py,sha256=ouJooQInk0SqyZ_4eiheBDTNFZYg7bRKbrEut95hckg,15980
|
12
12
|
mdbq/config/__init__.py,sha256=jso1oHcy6cJEfa7udS_9uO5X6kZLoPBF8l3wCYmr5dM,18
|
13
13
|
mdbq/config/get_myconf.py,sha256=9v3xebfcS1tptxpvk3_tGxfXjAehGVCveYe4iRUzLQQ,6372
|
14
14
|
mdbq/config/update_conf.py,sha256=YjGjjRchu5BcrmLJkoLjHEF2TbGOmsgCWX4LroXOYWQ,3455
|
@@ -31,7 +31,7 @@ mdbq/pbix/__init__.py,sha256=Trtfaynu9RjoTyLLYBN2xdRxTvm_zhCniUkVTAYwcjo,24
|
|
31
31
|
mdbq/pbix/pbix_refresh.py,sha256=JUjKW3bNEyoMVfVfo77UhguvS5AWkixvVhDbw4_MHco,2396
|
32
32
|
mdbq/pbix/refresh_all.py,sha256=wulHs4rivf4Mi0Pii2QR5Nk9-TBcvSwnCB_WH9QULKE,5939
|
33
33
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
34
|
-
mdbq-0.2.
|
35
|
-
mdbq-0.2.
|
36
|
-
mdbq-0.2.
|
37
|
-
mdbq-0.2.
|
34
|
+
mdbq-0.2.4.dist-info/METADATA,sha256=24_IjfKrHCLKWTSoJYWj1KR2M_BNqzx2hG2yGHxjPWc,245
|
35
|
+
mdbq-0.2.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
36
|
+
mdbq-0.2.4.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
37
|
+
mdbq-0.2.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|