-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Grey Li <[email protected]>
- Loading branch information
1 parent
d2c3752
commit 525eb77
Showing
8 changed files
with
142 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,8 +102,21 @@ def before_first_request_func(): | |
db.drop_all() | ||
db.create_all() | ||
for i in range(20): | ||
url = 'mailto:[email protected]' | ||
if i % 7 == 0: | ||
url = 'www.t.me' | ||
elif i % 7 == 1: | ||
url = 'https://t.me' | ||
elif i % 7 == 2: | ||
url = 'http://t.me' | ||
elif i % 7 == 3: | ||
url = 'http://t' | ||
elif i % 7 == 4: | ||
url = 'http://' | ||
elif i % 7 == 5: | ||
url = '[email protected]' | ||
m = Message( | ||
text=f'Test message {i+1}', | ||
text=f'Message {i+1} {url}', | ||
author=f'Author {i+1}', | ||
category=f'Category {i+1}', | ||
create_time=4321*(i+1) | ||
|
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 |
---|---|---|
|
@@ -102,8 +102,21 @@ def before_first_request_func(): | |
db.drop_all() | ||
db.create_all() | ||
for i in range(20): | ||
url = 'mailto:[email protected]' | ||
if i % 7 == 0: | ||
url = 'www.t.me' | ||
elif i % 7 == 1: | ||
url = 'https://t.me' | ||
elif i % 7 == 2: | ||
url = 'http://t.me' | ||
elif i % 7 == 3: | ||
url = 'http://t' | ||
elif i % 7 == 4: | ||
url = 'http://' | ||
elif i % 7 == 5: | ||
url = '[email protected]' | ||
m = Message( | ||
text=f'Test message {i+1}', | ||
text=f'Message {i+1} {url}', | ||
author=f'Author {i+1}', | ||
category=f'Category {i+1}', | ||
create_time=4321*(i+1) | ||
|
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