Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
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
defc420a
authored
Nov 27, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
skip special str
parent
e1524808
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
crontab.py
handle_txt.py
crontab.py
View file @
defc420a
...
...
@@ -273,7 +273,16 @@ def handle_vc_unit(conf: dict):
"""
input_type 为10的单位单独处理。
"""
if
str
(
unit
)
==
""
or
str
(
unit
)
==
"[]"
:
continue
end
=
str
(
unit
)
.
find
(
","
)
"""
特殊的例如 ["V"]
"""
if
end
==
-
1
:
end
=
str
(
unit
)
.
find
(
"]"
)
if
end
==
-
1
:
continue
default_unit
=
unit
[
2
:
end
-
1
]
update_sql
=
"update lie_shop_attr set default_unit =
%
s where id =
%
s"
cursor
.
execute
(
query
=
update_sql
,
args
=
(
default_unit
,
id
,))
...
...
handle_txt.py
0 → 100644
View file @
defc420a
File mode changed
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