Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
9b2972bd
Commit
9b2972bd
authored
Sep 11, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws 测试
parent
54392b2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
main.py
ws/src/main.py
+1
-1
No files found.
ws/src/main.py
View file @
9b2972bd
...
...
@@ -47,7 +47,7 @@ def get_random_one():
res
=
list
(
db
.
env_shape
.
aggregate
([
{
'$match'
:
query
},
{
'$sample'
:
{
'size'
:
1
}},
{
'$sort'
:
{
'updatetime'
:
1
}}
{
'$sort'
:
{
'updatetime'
:
-
1
}}
]))
path
=
f
'/tmp/{str(res[0]["_id"])}'
with
open
(
path
,
'w'
)
as
f
:
...
...
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