Method: PostRunner::FitFileStore#delete_activity
- Defined in:
- lib/postrunner/FitFileStore.rb
#delete_activity(activity) ⇒ Object
Delete an activity from the database. It will only delete the entry in the database. The original activity file will not be deleted from the file system.
143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
# File 'lib/postrunner/FitFileStore.rb', line 143 def delete_activity(activity) pred = predecessor(activity) succ = successor(activity) activity.device.delete_activity(activity) # The HTML activity views contain links to their predecessors and # successors. After deleting an activity, we need to re-generate these # views. pred.generate_html_report if pred succ.generate_html_report if succ generate_html_index_pages end |