Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
PipData
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4a0e717
authored
Nov 15, 2018
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
initial
parent
c79b1213
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
6 deletions
Ex.py
config/__pycache__/conn_list.cpython-36.pyc
config/__pycache__/db.cpython-36.pyc
extract/ex_ly_sku.py
Ex.py
View file @
d4a0e717
...
...
@@ -19,8 +19,7 @@ if __name__ == '__main__':
"失败信息:"
+
str
(
traceback
.
print_exc
()))
elif
sys
.
argv
[
1
]
==
'del_sku'
:
try
:
# ExLySku.del_sku()
pass
ExLySku
.
del_sku
()
except
:
MsgHandler
.
send_dd_msg
(
"【Mongo数据删除任务】 失败
\n
"
+
"失败信息:"
+
str
(
traceback
.
print_exc
()))
config/__pycache__/conn_list.cpython-36.pyc
View file @
d4a0e717
No preview for this file type
config/__pycache__/db.cpython-36.pyc
View file @
d4a0e717
No preview for this file type
extract/ex_ly_sku.py
View file @
d4a0e717
...
...
@@ -28,12 +28,9 @@ class ExLySku(Base):
index
=
0
# 筛选条件
query
=
{
"time"
:
{
"$gte"
:
DateHandler
.
date_time
(
0
),
"$lte"
:
DateHandler
.
date_time
(
-
1
)}}
print
(
query
)
query
=
{
"time"
:
{
"$gte"
:
DateHandler
.
date_time
(
1
),
"$lte"
:
DateHandler
.
date_time
(
0
)}}
while
True
:
if
index
>
2000
:
break
# 获取数据
result
=
table
.
find
(
query
)
.
skip
(
skip
)
.
limit
(
limit
)
# 数据读取完毕,跳出循环
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment