Skip to content

Commit

Permalink
remove magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Jul 7, 2020
1 parent 46a5d87 commit 602e438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion securedrop/create-dev-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import datetime
import os
import argparse
import math
from itertools import cycle

from flask import current_app
Expand Down Expand Up @@ -53,7 +54,7 @@ def main(staging=False):
if NUM_SOURCES == "ALL":
# We want all strings, 14 sources will give all the strings based
# on current string count.
NUM_SOURCES = 14
NUM_SOURCES = math.ceil(len(strings))
# Add test sources and submissions
num_sources = int(NUM_SOURCES)
for i in range(1, num_sources + 1):
Expand Down

0 comments on commit 602e438

Please sign in to comment.