[fixes] in docu and frontend

This commit is contained in:
Jan Grewe 2020-08-10 17:03:07 +02:00
parent 6e26991a85
commit 29f971b892
2 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ MariaDB [(none)]> FLUSH PRIVILEGES;
The first command creates the empty database and sets the Character set to utf8. This is important at least when it comes to *fishbook*. The second row creates a user **foo** and grants that user all rights on all tables of **fish_book**. So far **foo** can only log in from the local machine. In order to grant access also from outsides you need to issue a second command:
```sql
MariaDB [(none)]> CREATE USER 'foo'@'%' identified by 'password';
MariaDB [(none)]> GRANT ALL ON fish_book.* TO 'foo'@'%' IDENTIFIED BY 'password';
MariaDB [(none)]> FLUSH PRIVILEGES;
```

View File

@ -119,11 +119,11 @@ class Cell:
"""
cs = Cells * CellDatasetMap * Datasets * Subjects
if cell_type:
cs = cs & "cell_type like '{0:s}'".format(cell_type)
cs = cs & "cell_type like '%{0:s}%'".format(cell_type)
if species:
cs = cs & "species like '%{0:s}%'".format(species)
if quality:
cs = cs & "quality like '{0:s}'".format(quality)
cs = cs & "quality like '%{0:s}%'".format(quality)
results = []
total = len(cs)
if not test: