Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
245bb9b4
Commit
245bb9b4
authored
Apr 19, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify bug
parent
b02ddd39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tag.py
search/views/tag.py
+4
-2
No files found.
search/views/tag.py
View file @
245bb9b4
...
@@ -113,9 +113,11 @@ def choice_push_tag(device_id, user_id):
...
@@ -113,9 +113,11 @@ def choice_push_tag(device_id, user_id):
now_sec
=
int
(
time
.
time
())
now_sec
=
int
(
time
.
time
())
valid_time
=
8
*
7
*
24
*
60
*
60
valid_time
=
8
*
7
*
24
*
60
*
60
for
tag_id
in
redis_push_tag_dict
:
ori_key_list
=
list
(
redis_push_tag_dict
.
keys
())
for
tag_id
in
ori_key_list
:
if
now_sec
-
redis_push_tag_dict
[
tag_id
]
>=
valid_time
:
if
now_sec
-
redis_push_tag_dict
[
tag_id
]
>=
valid_time
:
redis_push_tag_dict
.
pop
item
(
tag_id
)
redis_push_tag_dict
.
pop
(
tag_id
)
redis_push_tag_list
=
list
(
redis_push_tag_dict
.
keys
())
redis_push_tag_list
=
list
(
redis_push_tag_dict
.
keys
())
redis_push_tag_list
=
[
int
(
item
)
for
item
in
redis_push_tag_list
]
redis_push_tag_list
=
[
int
(
item
)
for
item
in
redis_push_tag_list
]
...
...
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