Browse Source

remove log

main
Christoph Marzell 3 weeks ago
parent
commit
8b624565e0
  1. 3
      app/controllers/entries_controller.rb

3
app/controllers/entries_controller.rb

@ -44,9 +44,6 @@ class EntriesController < ApplicationController
required_minutes = (total_required * 60).to_i
entries_exist = current_user.entries.where(praktikums_typ: typ, entry_art: art).exists?
Rails.logger.info "=== #{art} #{typ} ==="
Rails.logger.info "Erforderlich (min): #{required_minutes}, Verbleibend: #{remaining_minutes}, Einträge vorhanden? #{entries_exist}"
if total_required > 0 && entries_exist
done_minutes = required_minutes - remaining_minutes
percent = (done_minutes / required_minutes.to_f * 100).round

Loading…
Cancel
Save