-
Notifications
You must be signed in to change notification settings - Fork 89
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
zrt #70
base: master
Are you sure you want to change the base?
zrt #70
Conversation
#创建活动 | ||
class activityCreate(APIView): | ||
def post(self): | ||
# if self.request.user.is_authenticated(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
登录状态限制被注释掉
class activityList(APIView): | ||
#获取活动列表 | ||
def get(self): | ||
# if self.request.user.is_authenticated(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
登录状态验证被注释,下同
articles = [] | ||
currentTime = datetime.datetime.now().timestamp() | ||
for activity in activities: | ||
if currentTime < activity.end_time.timestamp(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该判断currentTime是否在book_start和book_end时间段之间
@@ -15,6 +15,7 @@ | |||
""" | |||
from django.conf.urls import url, include | |||
from django.contrib import admin | |||
from django.contrib.auth import authenticate, login |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logout未import
return False | ||
|
||
elif self.is_text('抢票'): | ||
query = self.input['Content'][3:] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
抢票后空白符个数未知,应对query进行strip处理
No description provided.