diff --git a/inc/catc.php b/inc/catc.php index ddb7425..c0c7c80 100644 --- a/inc/catc.php +++ b/inc/catc.php @@ -24,9 +24,6 @@ class CATC extends Main //if($this->oDb->sDbState == Db::DB_PEACHY) $this->oAuth = new Auth($this->oDb, Settings::API_KEY); $this->oAuth = new Auth($this->oDb, Settings::API_KEY); - - //TODO remove. For upgrade purposes only - (new Doc($this->oDb))->getList('full'); } protected function install() diff --git a/inc/doc.php b/inc/doc.php index 9fe92b8..15af24b 100644 --- a/inc/doc.php +++ b/inc/doc.php @@ -84,16 +84,7 @@ class Doc extends PhpObject { 'from' => self::DOC_TABLE, 'constraint'=> $asKeys )); - - foreach($asDocs as &$asDoc) { - $asDoc['filepath'] = self::getFilePath($asDoc['filename']); - - //TODO remove. For upgrade purposes only - if($asDoc['filehash']=='') { - $asDoc['filehash'] = self::getChecksum($asDoc['filename']); - $this->oDb->updateRow(self::DOC_TABLE, $asDoc[Db::getId(self::DOC_TABLE)], array('filehash'=>$asDoc['filehash']), false); - } - } + foreach($asDocs as &$asDoc) $asDoc['filepath'] = self::getFilePath($asDoc['filename']); return $asDocs; } diff --git a/readme.md b/readme.md index c3aea71..73d4d2a 100644 --- a/readme.md +++ b/readme.md @@ -10,5 +10,6 @@ Prise de notes pour les cours du Collège des Arts Thérapeutiques Chinois * [x] Progress bar * [x] Save note on F5/quit * [ ] Sync local with remote repository -* [ ] Table in Quill JS -* [ ] Font Awesome icons in Quill JS Toolbar \ No newline at end of file +* [x] Table in Quill JS +* [ ] Font Awesome icons in Quill JS Toolbar +* [ ] Todo lists \ No newline at end of file