Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Server Maintain for Hunt Logs #158

Merged
merged 3 commits into from
Apr 27, 2022
Merged

Conversation

a08381
Copy link
Contributor

@a08381 a08381 commented Apr 26, 2022

No description provided.

Copy link
Owner

@Bluefissure Bluefissure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外 maintain_time 是不是通过 args 提供更好一些,python hunt_maintain.py 20220422_153000 这样子

servers = Server.objects.filter(areaId=7)
elif keyword == "豆豆柴" or keyword == '狗':
servers = Server.objects.filter(areaId=8)
servers = Server.objects.filter(name=keyword)
Copy link
Owner

@Bluefissure Bluefissure Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这行似乎没必要?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前有人和我建议加上单服的重启,我就这么写了

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前有人和我建议加上单服的重启,我就这么写了

哦哦,那是不是少了个else:,不然前面的 servers 没有作用。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好像是

@a08381
Copy link
Contributor Author

a08381 commented Apr 26, 2022

另外 maintain_time 是不是通过 args 提供更好一些,python hunt_maintain.py 20220422_153000 这样子

按照这个格式吗?那我重新写一下格式化方法

@Bluefissure
Copy link
Owner

另外 maintain_time 是不是通过 args 提供更好一些,python hunt_maintain.py 20220422_153000 这样子

按照这个格式吗?那我重新写一下格式化方法

我无所谓的,最好按照标准来吧,时区按照北京时间就行。

@a08381
Copy link
Contributor Author

a08381 commented Apr 27, 2022

改好了,现在大概用指令python hunt_maintain.py 国 20220426_153000就可以了,应该没什么bug

@Bluefissure
Copy link
Owner

感谢!

@Bluefissure Bluefissure merged commit 9424143 into Bluefissure:master Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants