Skip to content

Conversation

StoppedRain-Z
Copy link

No description provided.

#创建活动
class activityCreate(APIView):
def post(self):
# if self.request.user.is_authenticated():
Copy link
Author

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():
Copy link
Author

@StoppedRain-Z StoppedRain-Z Nov 16, 2018

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():
Copy link
Author

@StoppedRain-Z StoppedRain-Z Nov 16, 2018

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时间段之间

"""
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth import authenticate, login
Copy link
Author

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:]
Copy link
Author

Choose a reason for hiding this comment

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

抢票后空白符个数未知,应对query进行strip处理

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.

1 participant