Skip to content

Commit 37f2ba9

Browse files
committed
file location changed
1 parent 8d46720 commit 37f2ba9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/management/commands/fetch_questions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def add_arguments(self, parser):
1414
def handle(self, *args, **options):
1515
print("Generating Question Metadata. Please wait...")
1616
meta_file_name = 'metadata_'+uuid.uuid4().hex+".csv"
17-
with open(settings.MEDIA_ROOT + meta_file_name, "w+", newline='') as metafile:
17+
with open(settings.BASE_DIR +"/"+ meta_file_name, "w+", newline='') as metafile:
1818
metawriter = csv.writer(metafile, dialect='excel', delimiter='|')
1919
metawriter.writerow(["FOSS","Tutorial","Video Minute Range","Video Second Range","Question Title","Question Body","Question_Date","Question Posted By","Answer No.","Answer Body","Answer Date", "Answer Posted By"])
2020
foss = options['foss']

0 commit comments

Comments
 (0)