mirror of
https://github.com/AChep/keyguard-app.git
synced 2025-01-04 18:59:15 +01:00
chore: Internally sort list of contributors by user id to simplify git history
This commit is contained in:
parent
ab90d0d622
commit
118ee773b6
1
.github/update_localization_contributors.py
vendored
1
.github/update_localization_contributors.py
vendored
@ -57,6 +57,7 @@ report_data = report["data"]
|
||||
# amount of contributed words.
|
||||
report_data = list(filter(
|
||||
lambda x: x["translated"] + x["approved"] >= MIN_WORDS_CONTRIBUTED, report_data))
|
||||
report_data.sort(key=lambda x: x["user"]["id"])
|
||||
|
||||
report_data_text = json.dumps(report_data, indent=2)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -79,6 +79,9 @@ class LocalizationContributorsServiceImpl(
|
||||
.effectMap { jsonString ->
|
||||
val entities = json.decodeFromString<List<LocalizationContributorEntity>>(jsonString)
|
||||
val models = entities.map(LocalizationContributorEntity::toDomain)
|
||||
.sortedByDescending { contributor ->
|
||||
contributor.translated
|
||||
}
|
||||
models
|
||||
}
|
||||
.sharedSoftRef(TAG)
|
||||
|
Loading…
Reference in New Issue
Block a user