Skip to content

Commit

Permalink
fix published items appearind as paused
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Feb 16, 2024
1 parent b2784c9 commit c7b6c92
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ def get_medias_params
end

[
*links,
# *links,
*claims,
*uploadedAudios,
*uploadedImages,
*uploadedVideos
# *uploadedAudios,
# *uploadedImages,
# *uploadedVideos
]
end

Expand Down Expand Up @@ -351,9 +351,9 @@ def get_url_for_some_fact_checks(index)
def verify_fact_check_and_publish_report(project_media)
status = ['verified', 'false'].sample

verification_status = project_media.last_status_obj
verification_status.status = status
verification_status.save!
# verification_status = project_media.last_status_obj
# verification_status.status = status
# verification_status.save!

report_design = project_media.get_dynamic_annotation('report_design')
report_design.set_fields = { status_label: status, state: 'published' }.to_json
Expand Down

0 comments on commit c7b6c92

Please sign in to comment.