Рефакторинг обработчиков. Часть 3 #21
This commit is contained in:
@@ -268,7 +268,7 @@ target_exists(_, _) -> false.
|
||||
|
||||
update_target_rating(event, EventId) ->
|
||||
{Avg, Count} = core_review:get_average_rating(event, EventId),
|
||||
io:format("Updating event ~p rating: avg=~p, count=~p~n", [EventId, Avg, Count]),
|
||||
%% io:format("Updating event ~p rating: avg=~p, count=~p~n", [EventId, Avg, Count]),
|
||||
core_event:update(EventId, [{rating_avg, Avg}, {rating_count, Count}]);
|
||||
update_target_rating(calendar, CalendarId) ->
|
||||
{Avg, Count} = core_review:get_average_rating(calendar, CalendarId),
|
||||
|
||||
Reference in New Issue
Block a user