Skip to content

Added Capo_Nucleo#7

Open
Luke505 wants to merge 3 commits intoiflare3g:masterfrom
Luke505:Add-Capo_Nucleo
Open

Added Capo_Nucleo#7
Luke505 wants to merge 3 commits intoiflare3g:masterfrom
Luke505:Add-Capo_Nucleo

Conversation

@Luke505
Copy link
Copy Markdown

@Luke505 Luke505 commented Feb 3, 2020

+ Capo_Nucleo field in Residence_DB table
+ Capo_Nucleo check

- Checks with old residents (Longo & Paciolla)

Added Capo_Nucleo check and removed some checks with old residents (Longo & Paciolla)
Comment thread ElisBot/ElisBot.py Outdated
Rinominato le variabili cn & cs, rispettivamente, in capoNucleo e capoStanza
Comment thread ElisBot/ElisBot.py
data+=emoji.emojize(u"\U0001f466\U0001f3ff" + nome + " " + cognome + "\n")
else:
data+=emoji.emojize(":boy: " + nome + " " + cognome + "\n")
data+=emoji.emojize(":boy: " + nome + " " + cognome + "\n")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serve uno spazio tra += e gli oggetti in causa

Comment thread ElisBot/ElisBot.py
nome = user['Nome']
cognome = user['Cognome']
cs = user["Capo_Stanza"]
capoNucleo = user["Capo_Nucleo"]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questa sintassi non va bene per Python, bisogna usare lo snake_case, quindi capo_nucleo in caso di parole "composte"

Comment thread ElisBot/db.py
with self.connection.cursor() as cursor:

queryForUserInfo = 'select Nome,Cognome,Capo_Stanza from Residence_DB where Stanza like %s'
queryForUserInfo = 'select Nome,Cognome,Capo_Stanza,Capo_Nucleo from Residence_DB where Stanza like %s'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem qui, probabilmente era un mio errore iniziale, snake_case anche qui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants