Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Apr 10, 2024
1 parent e8323d4 commit e3057b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ee/tabby-webserver/src/service/analytic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ impl AnalyticService for AnalyticServiceImpl {
None
};

languages = languages.into_iter().filter(|l| l != &Language::Other).collect();
languages.retain(|l| l != &Language::Other);

let languages = languages.into_iter().flat_map(|l| l.to_strings()).collect();
let stats = self
.db
.compute_daily_stats(start, end, users, languages, not_languages.unwrap_or_default())
.compute_daily_stats(
start,
end,
users,
languages,
not_languages.unwrap_or_default(),
)
.await?;
let stats = stats
.into_iter()
Expand Down

0 comments on commit e3057b5

Please sign in to comment.