mdbq 3.5.9__py3-none-any.whl → 3.6.1__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/aggregation/query_data.py +4 -0
- mdbq/redis/getredis.py +1 -1
- {mdbq-3.5.9.dist-info → mdbq-3.6.1.dist-info}/METADATA +1 -1
- {mdbq-3.5.9.dist-info → mdbq-3.6.1.dist-info}/RECORD +6 -6
- {mdbq-3.5.9.dist-info → mdbq-3.6.1.dist-info}/WHEEL +1 -1
- {mdbq-3.5.9.dist-info → mdbq-3.6.1.dist-info}/top_level.txt +0 -0
mdbq/aggregation/query_data.py
CHANGED
@@ -2218,6 +2218,7 @@ class MysqlDatasQuery:
|
|
2218
2218
|
'成交客户数': 1,
|
2219
2219
|
'加购商品件数': 1,
|
2220
2220
|
'加购人数': 1,
|
2221
|
+
'更新时间': 1,
|
2221
2222
|
}
|
2222
2223
|
__res = []
|
2223
2224
|
for year in range(2024, datetime.datetime.today().year + 1):
|
@@ -2309,6 +2310,7 @@ class MysqlDatasQuery:
|
|
2309
2310
|
'成交客户数': 1,
|
2310
2311
|
'加购商品件数': 1,
|
2311
2312
|
'加购人数': 1,
|
2313
|
+
'更新时间': 1,
|
2312
2314
|
}
|
2313
2315
|
__res = []
|
2314
2316
|
for year in range(2024, datetime.datetime.today().year + 1):
|
@@ -4140,6 +4142,7 @@ def main(days=150, months=3):
|
|
4140
4142
|
"属性设置3",
|
4141
4143
|
"推广数据2",
|
4142
4144
|
"推广数据_淘宝店",
|
4145
|
+
"推广数据_奥莱店",
|
4143
4146
|
"爱库存2",
|
4144
4147
|
"生意参谋3",
|
4145
4148
|
"生意经3",
|
@@ -4147,6 +4150,7 @@ def main(days=150, months=3):
|
|
4147
4150
|
'人群画像2',
|
4148
4151
|
'商品人群画像2',
|
4149
4152
|
'市场数据3',
|
4153
|
+
'回传数据',
|
4150
4154
|
]
|
4151
4155
|
# 使用 ThreadPoolExecutor 来并行运行
|
4152
4156
|
# with concurrent.futures.ThreadPoolExecutor() as executor:
|
mdbq/redis/getredis.py
CHANGED
@@ -101,7 +101,7 @@ class RedisData(object):
|
|
101
101
|
# Bug: 如果外部请求日期小于 table 最小日期,每次都要从 mysql 获取数据,即使 redis 缓存了数据
|
102
102
|
if start_date < min_date: # 外部请求日期小于 redis 数据最小日期
|
103
103
|
# 3. redis 有数据但数据不完整时
|
104
|
-
print(f'数据日期不对劲需要更新')
|
104
|
+
print(f'{start_date} -- {min_date} 数据日期不对劲需要更新')
|
105
105
|
thread = threading.Thread(target=self.set_redis, args=(my_key, _db_name, _table_name, _set_year, start_date, end_date, _df))
|
106
106
|
thread.start()
|
107
107
|
# _df = self.set_redis(my_key=my_key, _db_name=_db_name, _table_name=_table_name, _set_year=_set_year, start_date=start_date, end_date=end_date)
|
@@ -4,7 +4,7 @@ mdbq/aggregation/__init__.py,sha256=EeDqX2Aml6SPx8363J-v1lz0EcZtgwIBYyCJV6CcEDU,
|
|
4
4
|
mdbq/aggregation/aggregation.py,sha256=-yzApnlqSN2L0E1YMu5ml-W827qpKQvWPCOI7jj2kzY,80264
|
5
5
|
mdbq/aggregation/datashow.py,sha256=1AYSIDkdUx-4as1Ax2rPj0cExM9d-qFMrFYLAaPHNuk,54962
|
6
6
|
mdbq/aggregation/optimize_data.py,sha256=RXIv7cACCgYyehAxMjUYi_S7rVyjIwXKWMaM3nduGtA,3068
|
7
|
-
mdbq/aggregation/query_data.py,sha256=
|
7
|
+
mdbq/aggregation/query_data.py,sha256=KrQqe9qzrKAs3s6QNoQZuY8_U36I852dFPiIcv1QIi0,193075
|
8
8
|
mdbq/bdup/__init__.py,sha256=AkhsGk81SkG1c8FqDH5tRq-8MZmFobVbN60DTyukYTY,28
|
9
9
|
mdbq/bdup/bdup.py,sha256=LAV0TgnQpc-LB-YuJthxb0U42_VkPidzQzAagan46lU,4234
|
10
10
|
mdbq/config/__init__.py,sha256=jso1oHcy6cJEfa7udS_9uO5X6kZLoPBF8l3wCYmr5dM,18
|
@@ -33,10 +33,10 @@ mdbq/pbix/pbix_refresh.py,sha256=JUjKW3bNEyoMVfVfo77UhguvS5AWkixvVhDbw4_MHco,239
|
|
33
33
|
mdbq/pbix/refresh_all.py,sha256=OBT9EewSZ0aRS9vL_FflVn74d4l2G00wzHiikCC4TC0,5926
|
34
34
|
mdbq/pbix/refresh_all_old.py,sha256=_pq3WSQ728GPtEG5pfsZI2uTJhU8D6ra-htIk1JXYzw,7192
|
35
35
|
mdbq/redis/__init__.py,sha256=YtgBlVSMDphtpwYX248wGge1x-Ex_mMufz4-8W0XRmA,12
|
36
|
-
mdbq/redis/getredis.py,sha256=
|
36
|
+
mdbq/redis/getredis.py,sha256=ZnYIaE0bW5Igp7jMPQc7t1zJlzkIazEgIgKZMMTczJI,8508
|
37
37
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
38
38
|
mdbq/spider/aikucun.py,sha256=v7VO5gtEXR6_4Q6ujbTyu1FHu7TXHcwSQ6hIO249YH0,22208
|
39
|
-
mdbq-3.
|
40
|
-
mdbq-3.
|
41
|
-
mdbq-3.
|
42
|
-
mdbq-3.
|
39
|
+
mdbq-3.6.1.dist-info/METADATA,sha256=w3q_26jfhrh0Pi7F0BiAdHxeT3J9BUHfSsGz-BhfH2o,243
|
40
|
+
mdbq-3.6.1.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
41
|
+
mdbq-3.6.1.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
42
|
+
mdbq-3.6.1.dist-info/RECORD,,
|
File without changes
|