Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
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
10418f09
authored
Apr 24, 2020
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
4f1a2a43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
utils/mongo.py
utils/mongo.py
View file @
10418f09
...
...
@@ -51,9 +51,9 @@ class MongoOperator:
def
get_unexpired_time
(
plat
):
if
plat
==
'powell'
:
ts
=
int
(
time
.
time
())
-
3600
*
24
*
7
# 5d
elif
plat
in
(
'digikey'
,):
elif
plat
in
(
'digikey'
,
'avnet'
,
):
ts
=
int
(
time
.
time
())
-
3600
*
72
# 72h
elif
plat
in
(
'microchip'
,
'heilind'
,
'element14'
,
'chip1stop'
,
'future'
):
elif
plat
in
(
'microchip'
,
'heilind'
,
'element14'
,
'chip1stop'
,
'future'
,
):
ts
=
int
(
time
.
time
())
-
3600
*
24
# 24h
elif
plat
in
(
"richardsonrfpd"
,):
ts
=
int
(
time
.
time
())
-
3600
*
96
# 96h
...
...
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