0
1
Fork 0

Image sync method fixes.

This commit is contained in:
Juan Ferrer 2020-08-29 14:35:19 +02:00
parent a07842e899
commit 3e26e49b86
3 changed files with 6 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.407.30) stable; urgency=low
hedera-web (1.407.31) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.407.30",
"version": "1.407.31",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -60,7 +60,7 @@ class Sync extends Vn\Lib\Method {
);
if ($res->num_rows == 0) continue;
echo "Deleting {$res->num_rows} from collection '$collection'.\n";
echo "Recycling {$res->num_rows} images from collection '$collection'.\n";
while ($image = $res->fetch_object())
if (!empty($image->name) && !in_array($image->name, ['.', '..'])) {
@ -84,8 +84,9 @@ class Sync extends Vn\Lib\Method {
throw $e;
}
}
echo "Syncronization finished. $deleteCount images moved to trash.\n";
echo "Total $deleteCount images moved to trash.\n";
echo "Syncronization finished.\n";
}
/**