-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Job queue time units #452
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
Merged
jh0ker
merged 31 commits into
python-telegram-bot:master
from
voider1:job-queue-time-units
Nov 8, 2016
Merged
Job queue time units #452
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
71abbed
Adding timeunit and day support to the jobqueue
a257901
Adding tests
a5eedba
Changed the file permission back to 644.
fe6eca2
Changed AssertEqual argument order to (actual, expectd).
036feeb
Removed the TimeUnit enum and unit param, instead use datetime.time f…
7c3c5f0
Removing the TimeUnits enum and unit param in favour of optionally us…
68e2537
Changing the time units test so it works with datetime.time.
12e2c24
Removing the TimeUnits enumeration, forgot the remove it in the last …
9c94fb4
Removed some old docstrings refering to the TimeUnits enum.
27fb6e8
Removed the old TimeUnits import.
742add1
Adding some error handling for the 'days' argument (only a 'tuple' wi…
f7786e8
Writing the error message directly in the exception.
766e963
Moving a debug statement wrongfully saying a job would be running on …
2e4b4ef
Writing error messages directly in the exceptions instead of making a…
f25c182
Replacing datetime.time in favour of datetime.timedelta because of th…
146ee9b
Adding error handling for the method .
54f5a7f
Splitting the tests up in multiple ones, no float test because I have…
b307f3e
Excluding .exrc file.
4ce188b
Removing \ at EOF of ValueError.
4bc363e
Replacing Enums with plain new-style classes.
93625ee
Using numbers.number to check for ints/floats instead of seperate int…
83efa8a
Fixing typo, number -> Number.
f886d7c
Changed lower_case Days attributes to UPPER_CASE.
ce555cc
Different formatting for Days class, removed the get_days function in…
c4a1cb6
Removed redundant function get_days.
e5633d1
Edited the docstring for next_t to also take datetime.timedelta.
f841f04
Removed for-loop in favour of any().
9c8c513
Changed docstring for interval.
6638a11
Removed debug print.
4b2fff2
Changing some docstrings.
a76d664
Changing some docstrings (again).
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -71,3 +71,6 @@ telegram.webp | |
|
|
||
| # original files from merges | ||
| *.orig | ||
|
|
||
| # Exclude .exrc file for Vim | ||
| .exrc | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please update the docstring so it mentions that
next_tcan also be of typetimedelta