k-mktr commited on
Commit
2bbce53
·
verified ·
1 Parent(s): fd014ac

Update release_notes.py

Browse files
Files changed (1) hide show
  1. release_notes.py +1 -8
release_notes.py CHANGED
@@ -1,20 +1,13 @@
1
- from nc_py_api import Nextcloud
2
  import json
3
  from datetime import datetime
4
  import config
5
 
6
- # Initialize Nextcloud client
7
- nc = Nextcloud(
8
- nextcloud_url=config.NEXTCLOUD_URL,
9
- nc_auth_user=config.NEXTCLOUD_USERNAME,
10
- nc_auth_pass=config.NEXTCLOUD_PASSWORD
11
- )
12
-
13
  NEXTCLOUD_NOTES_PATH = "/gpu_poor_release_notes.json"
14
  LOCAL_CACHE_FILE = "release_notes.json"
15
 
16
  def load_release_notes():
17
  """Load release notes from Nextcloud with local file fallback."""
 
18
  try:
19
  # Try to load from Nextcloud
20
  remote_data = nc.files.download(NEXTCLOUD_NOTES_PATH)
 
 
1
  import json
2
  from datetime import datetime
3
  import config
4
 
 
 
 
 
 
 
 
5
  NEXTCLOUD_NOTES_PATH = "/gpu_poor_release_notes.json"
6
  LOCAL_CACHE_FILE = "release_notes.json"
7
 
8
  def load_release_notes():
9
  """Load release notes from Nextcloud with local file fallback."""
10
+ nc = config.get_nextcloud_client() # Use the singleton client
11
  try:
12
  # Try to load from Nextcloud
13
  remote_data = nc.files.download(NEXTCLOUD_NOTES_PATH)