mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Fix mixing up client and database in medium selector
This commit is contained in:
parent
8a00e4588c
commit
12b4ba681c
1 changed files with 4 additions and 4 deletions
|
|
@ -53,8 +53,8 @@ impl Screen<(), Medium> for MediumSelector {
|
||||||
async move {
|
async move {
|
||||||
let mut poes = Vec::new();
|
let mut poes = Vec::new();
|
||||||
|
|
||||||
let persons = this.handle.backend.db().get_persons().await?;
|
let persons = this.handle.backend.cl().get_persons().await?;
|
||||||
let ensembles = this.handle.backend.db().get_ensembles().await?;
|
let ensembles = this.handle.backend.cl().get_ensembles().await?;
|
||||||
|
|
||||||
for person in persons {
|
for person in persons {
|
||||||
poes.push(PersonOrEnsemble::Person(person));
|
poes.push(PersonOrEnsemble::Person(person));
|
||||||
|
|
@ -72,8 +72,8 @@ impl Screen<(), Medium> for MediumSelector {
|
||||||
async move {
|
async move {
|
||||||
let mut poes = Vec::new();
|
let mut poes = Vec::new();
|
||||||
|
|
||||||
let persons = this.handle.backend.cl().get_persons().await.unwrap();
|
let persons = this.handle.backend.db().get_persons().await.unwrap();
|
||||||
let ensembles = this.handle.backend.cl().get_ensembles().await.unwrap();
|
let ensembles = this.handle.backend.db().get_ensembles().await.unwrap();
|
||||||
|
|
||||||
for person in persons {
|
for person in persons {
|
||||||
poes.push(PersonOrEnsemble::Person(person));
|
poes.push(PersonOrEnsemble::Person(person));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue