mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
configDB - minor bugfix (file update)
git-svn-id: https://svn.fhem.de/fhem/trunk@5844 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
61ac126ccd
commit
cc0c3c5b7b
@ -275,7 +275,8 @@ if($cfgDB_dbconn =~ m/pg:/i) {
|
|||||||
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
|
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
|
||||||
$fhem_dbh->disconnect();
|
$fhem_dbh->disconnect();
|
||||||
if($id) {
|
if($id) {
|
||||||
_cfgDB_Fileimport($filename,1) if $id;
|
my $filesize = -s $filename;
|
||||||
|
_cfgDB_Fileimport($filename,$filesize,1) if $id;
|
||||||
Log 5, "file $filename updated in configDB";
|
Log 5, "file $filename updated in configDB";
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
@ -975,7 +976,8 @@ sub _cfgDB_Updatefile($) {
|
|||||||
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
|
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
|
||||||
$fhem_dbh->disconnect();
|
$fhem_dbh->disconnect();
|
||||||
if($id) {
|
if($id) {
|
||||||
_cfgDB_Fileimport($filename,1) if $id;
|
my $filesize = -s $filename;
|
||||||
|
_cfgDB_binFileimport($filename,$filesize,1) if $id;
|
||||||
Log 5, "file $filename updated in configDB";
|
Log 5, "file $filename updated in configDB";
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user