Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

pytatki.dbconnect.remove_notegroup()

Patryk Niedźwiedziński edited this page Nov 1, 2018 · 2 revisions

v1.0.1

remove_notegroup() - if notegroup is empty removes it and return True, else returns False

remove_notegroup(
    conn,
    idnotegroup)
  • conn - connection used to modify data in DB
  • idnotegroup - notegroup to delete

Affected tables

  • notegroup
  • usergroup_has_notegroup

Examples

import pytatki

_, conn = pytatki.dbconnect.connection()
success = pytatki.dbconnect.remove_notegroup(conn, 1)
conn.commit()
_.close()
conn.close()
if success:
    print("removed")

See also