mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 23:35:09 +00:00
Fix backup test
This commit is contained in:
parent
b3dd1ddbab
commit
b1ea7fd4bd
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
|
|
@ -22,7 +23,7 @@ def get_key_builder():
|
||||||
assert site_name
|
assert site_name
|
||||||
|
|
||||||
def builder(key: str, suffix: str) -> bool:
|
def builder(key: str, suffix: str) -> bool:
|
||||||
return key == os.path.join(site_name, suffix)
|
return bool(re.match(rf"{site_name}.*{suffix}$", key))
|
||||||
|
|
||||||
return builder
|
return builder
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue