-
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.
- Loading branch information
1n5aN1aC
committed
Dec 14, 2015
1 parent
fcc3e44
commit 7505bf5
Showing
6 changed files
with
37 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!python | ||
# -*- coding: UTF-8 -*- | ||
from database import * | ||
|
||
# | ||
# This file will reset the current rainfall to 0. | ||
def reset_rain(): | ||
# Reset rain_since_reset in the table | ||
# (╯°□°)╯︵ ┻━┻ | ||
now = Table_Now.get(1) | ||
now.sync() | ||
now.Out_Rain_Since_Reset = 0 | ||
|
||
# If file ran directly, reset the rain as well. | ||
# We use this to be able to support wsgi OR straight python. | ||
if __name__ == '__main__': | ||
# Print the Header | ||
print "Content-Type: text/html;charset=utf-8" | ||
|
||
reset_rain() | ||
|
||
# Print the Data | ||
print "reset!" |
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 was deleted.
Oops, something went wrong.
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