-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加对worst10department设置门限的接口,添加top10ne,worst10department按年月删除的接口,修复导出d…
…ocx的bug。
- Loading branch information
jiangjiahe
committed
Mar 14, 2019
1 parent
e14bf83
commit c2e072f
Showing
6 changed files
with
77 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
__author__ = silenthz | ||
__date__ = 2019/3/14 | ||
""" | ||
from report.models import StatisticsTop10Ne, StatisticsMonthlyWorst10Department | ||
|
||
|
||
def removeTop10Ne(year, month): | ||
StatisticsTop10Ne.objects.filter(yearNum=int(year), monthNum=int(month)).delete() | ||
return '%s-%s Top10Ne删除成功' % (year, month) + ';\n' | ||
|
||
|
||
def removeWorst10department(year, month): | ||
StatisticsMonthlyWorst10Department.objects.filter(yearNum=int(year), monthNum=int(month)).delete() | ||
return '%s-%s Worst10Department删除成功' % (year, month) + ';\n' |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters