mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: select all db strating by dest when cleaning
This commit is contained in:
parent
fe6788e349
commit
2de144d299
@ -442,7 +442,7 @@ class runbot_build(models.Model):
|
||||
def cleanup(dest_list, func, max_days, label):
|
||||
dest_by_builds_ids = defaultdict(list)
|
||||
ignored = set()
|
||||
dest_reg = re.compile(r'^\d{5,}-.{1,32}-[\da-f]{6}(-.*)*$')
|
||||
dest_reg = re.compile(r'^\d{5,}-.{1,32}-[\da-f]{6}(.*)*$')
|
||||
for dest in dest_list:
|
||||
try:
|
||||
if not dest_reg.match(dest):
|
||||
|
Loading…
Reference in New Issue
Block a user