Skip to content

Commit

Permalink
add ads.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkcyf committed Jun 27, 2024
1 parent 47778c9 commit 6c0ff6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,4 +1138,8 @@ def songshu():

@home.route('/robots.txt')
def robots():
return current_app.send_static_file('robots.txt')
return current_app.send_static_file('robots.txt')

@home.route('/ads.txt')
def google_ads_txt():
return current_app.send_static_file('ads.txt')
4 changes: 2 additions & 2 deletions tests/remove_duplicated_courses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import collections

# Opening JSON file
f = open('/Users/cyf/Documents/GitHub/sustc-course/course-raw-data/2023-2.json')
f = open('/Users/cyf/Documents/GitHub/sustc-course/course-raw-data/2023-3.json')

# returns JSON object as
# a dictionary
Expand All @@ -24,5 +24,5 @@

print([item for item, count in collections.Counter(hash_list_data).items() if count > 1]) # print duplicated course

with open('/Users/cyf/Documents/GitHub/sustc-course/course_remove_dup_json/2023-2.json', 'w') as f:
with open('/Users/cyf/Documents/GitHub/sustc-course/course_remove_dup_json/2023-3.json', 'w') as f:
json.dump(op_json, f, ensure_ascii=False)

0 comments on commit 6c0ff6e

Please sign in to comment.