commit
12c7f20ae9
1 changed files with 7 additions and 6 deletions
|
@ -1,12 +1,13 @@
|
||||||
import logging
|
import logging
|
||||||
import features
|
import features
|
||||||
|
|
||||||
from endpoints.replication import queue_storage_replication
|
|
||||||
from data.database import Image, ImageStorage, Repository, User
|
from data.database import Image, ImageStorage, Repository, User
|
||||||
|
from util.registry.replication import queue_storage_replication
|
||||||
|
|
||||||
def backfill_replication():
|
def backfill_replication():
|
||||||
encountered = set()
|
encountered = set()
|
||||||
query = (Image.select(Image, ImageStorage, Repository, User)
|
query = (Image
|
||||||
|
.select(Image, ImageStorage, Repository, User)
|
||||||
.join(ImageStorage)
|
.join(ImageStorage)
|
||||||
.switch(Image)
|
.switch(Image)
|
||||||
.join(Repository)
|
.join(Repository)
|
||||||
|
|
Reference in a new issue