yulongchen commited on
Commit
273bc17
·
1 Parent(s): 816bdce

Add system

Browse files
Files changed (2) hide show
  1. system/pledge_tracking.py +2 -2
  2. test.html +1 -1
system/pledge_tracking.py CHANGED
@@ -70,7 +70,7 @@ def run_pipeline(claim, pledge_date, pledge_author, start_date, timestamp, user_
70
  with open(initial_scraped_output_path, "r", encoding="utf-8") as f:
71
  line_count = sum(1 for line in f if json.loads(line)["url2text"] != [])
72
  if update_fn:
73
- update_fn(step_id, f"{line_count} URL pages have been sucessefully scraped")
74
  step_id+=1
75
 
76
 
@@ -152,7 +152,7 @@ def run_pipeline(claim, pledge_date, pledge_author, start_date, timestamp, user_
152
  with open(augmented_scraped_output_path, "r", encoding="utf-8") as f:
153
  line_count = sum(1 for line in f if json.loads(line)["url2text"] != [])
154
  if update_fn:
155
- update_fn(step_id, f"{line_count} URL pages have been sucessefully scraped")
156
  step_id+=1
157
  except Exception as e:
158
  if update_fn:
 
70
  with open(initial_scraped_output_path, "r", encoding="utf-8") as f:
71
  line_count = sum(1 for line in f if json.loads(line)["url2text"] != [])
72
  if update_fn:
73
+ update_fn(step_id, f"{line_count} URL pages have been successefully scraped")
74
  step_id+=1
75
 
76
 
 
152
  with open(augmented_scraped_output_path, "r", encoding="utf-8") as f:
153
  line_count = sum(1 for line in f if json.loads(line)["url2text"] != [])
154
  if update_fn:
155
+ update_fn(step_id, f"{line_count} URL pages have been successefully scraped")
156
  step_id+=1
157
  except Exception as e:
158
  if update_fn:
test.html CHANGED
@@ -292,7 +292,7 @@
292
  alert("No feedback to submit!");
293
  return;
294
  }
295
- const confirmed = confirm("By submitting feedback, you agree that your responses may be collected for research purposes. Your data will be anonymised and stored securely. Participation is entirely voluntary. If you do not wish to take part, please cancel this submission.");
296
  if (!confirmed) return;
297
 
298
  const pledgeText = document.getElementById("claim").value.trim();
 
292
  alert("No feedback to submit!");
293
  return;
294
  }
295
+ const confirmed = confirm("By submitting feedback, you agree that your feedback may be collected for our analysis. Your data will be anonymised and stored securely. No personal information will be recorded. If you do not wish to take part, please cancel this submission.");
296
  if (!confirmed) return;
297
 
298
  const pledgeText = document.getElementById("claim").value.trim();