Skip to content

Commit 7d55f38

Browse files
committed
naming convention change to llama3
1 parent aa0454c commit 7d55f38

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

api/models/llama3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from api import db
22

33

4-
class Llama3(db.Model):
5-
__bind_key__ = "llama3_summaries"
4+
class Summaries(db.Model):
5+
__bind_key__ = "llama3"
66
__tablename__ = "summaries"
77

88
gene_id: db.Mapped[str] = db.mapped_column(db.String(13), nullable=False, primary_key=True)

api/resources/llama3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from markupsafe import escape
99
from api.utils.bar_utils import BARUtils
1010
from api import db
11-
from api.models.llama3 import Llama3
11+
from api.models.llama3 import Summaries
1212

1313

1414
llama3 = Namespace("LLaMA", description="Endpoint for retreiving LLaMA3 results", path="/LLaMA")
@@ -27,7 +27,7 @@ def get(self, gene_id=""):
2727

2828
if BARUtils.is_arabidopsis_gene_valid(gene_id):
2929
rows = (
30-
db.session.execute(db.select(Llama3).where(Llama3.gene_id == gene_id))
30+
db.session.execute(db.select(Summaries).where(Summaries.gene_id == gene_id))
3131
.first()
3232
)
3333

config/BAR_API.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SQLALCHEMY_BINDS = {
2626
'germination': 'mysql://root:root@localhost/germination',
2727
'kalanchoe': 'mysql://root:root@localhost/kalanchoe',
2828
'klepikova': 'mysql://root:root@localhost/klepikova',
29-
'llama3_summaries': 'mysql://root:root@localhost/llama3_summaries',
29+
'llama3': 'mysql://root:root@localhost/llama3',
3030
'phelipanche' : 'mysql://root:root@localhost/phelipanche',
3131
'physcomitrella_db' : 'mysql://root:root@localhost/physcomitrella_db',
3232
'poplar_nssnp' : 'mysql://root:root@localhost/poplar_nssnp',
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1717

1818
--
19-
-- Current Database: `llama3_summaries`
19+
-- Current Database: `llama3`
2020
--
2121

22-
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `llama3_summaries` /*!40100 DEFAULT CHARACTER SET latin1 */ /*!80016 DEFAULT ENCRYPTION='N' */;
22+
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `llama3` /*!40100 DEFAULT CHARACTER SET latin1 */ /*!80016 DEFAULT ENCRYPTION='N' */;
2323

24-
USE `llama3_summaries`;
24+
USE `llama3`;
2525

2626
--
2727
-- Table structure for table `summaries`

config/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mysql -u $DB_USER -p$DB_PASS < ./config/databases/fastpheno.sql
2525
mysql -u $DB_USER -p$DB_PASS < ./config/databases/germination.sql
2626
mysql -u $DB_USER -p$DB_PASS < ./config/databases/kalanchoe.sql
2727
mysql -u $DB_USER -p$DB_PASS < ./config/databases/klepikova.sql
28-
mysql -u $DB_USER -p$DB_PASS < ./config/databases/llama3_summaries.sql
28+
mysql -u $DB_USER -p$DB_PASS < ./config/databases/llama3.sql
2929
mysql -u $DB_USER -p$DB_PASS < ./config/databases/phelipanche.sql
3030
mysql -u $DB_USER -p$DB_PASS < ./config/databases/physcomitrella_db.sql
3131
mysql -u $DB_USER -p$DB_PASS < ./config/databases/poplar_nssnp.sql

0 commit comments

Comments
 (0)