Skip to content

Commit ca6031f

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
adlibrary/ad_library_api_script_repository/python
Reviewed By: jermenkoo Differential Revision: D56693186 fbshipit-source-id: 6d977c0c838938576f841c096dc765dcc19552d0
1 parent 577c707 commit ca6031f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/fb_ads_library_api_operators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def count_ads(generator_ad_archives, args, is_verbose=False):
3636
count += len(ad_archives)
3737
if is_verbose:
3838
print("counting %d" % count)
39-
print("Total number of ads match the query: {}".format(count))
39+
print(f"Total number of ads match the query: {count}")
4040

4141

4242
def save_to_file(generator_ad_archives, args, is_verbose=False):
@@ -128,6 +128,6 @@ def count_start_time_trending(generator_ad_archives, args, is_verbose=False):
128128
with open(output_file, "w") as csvfile:
129129
csvfile.write("date, count\n")
130130
for date in date_to_count.keys():
131-
csvfile.write("%s, %s\n" % (date, date_to_count[date]))
131+
csvfile.write("{}, {}\n".format(date, date_to_count[date]))
132132

133133
print("Successfully wrote data to file: %s" % output_file)

0 commit comments

Comments
 (0)