MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _local_time_str

Function _local_time_str

Scripts/ButSystem.py:12397–12417  ·  view source on GitHub ↗

_local_time_str. Internal helper function. This docstring was added automatically to improve maintainability. Args: utc_iso: Parameter. Returns: Varies.

(utc_iso: Optional[str])

Source from the content-addressed store, hash-verified

12395 o.mtime_h = datetime.fromtimestamp(e["mtime"]).isoformat(sep=" ", timespec="seconds")
12396 out.append(o)
12397 return out
12398
12399
12400@app.route("/files")
12401@login_required
12402def files():
12403 rel = request.args.get("p", "") or ""
12404 sort = (request.args.get("sort") or "name").lower()
12405 order = (request.args.get("order") or "asc").lower()
12406 query = (request.args.get("q") or "").strip()
12407 category = (request.args.get("category") or "all").lower()
12408 if sort not in ("name", "mtime", "size", "type"): sort = "name"
12409 if order not in ("asc", "desc"): order = "asc"
12410 if category not in dict(FILE_CATEGORIES): category = "all"
12411 try: size_min_mb = max(0, int(request.args.get("size_min") or 0))
12412 except Exception: size_min_mb = 0
12413 try:
12414 raw_max = request.args.get("size_max")
12415 size_max_mb = max(0, int(raw_max)) if raw_max not in (None, "") else None
12416 except Exception: size_max_mb = None
12417 date_from, date_to = request.args.get("date_from", ""), request.args.get("date_to", "")
12418 try:
12419 rel = safe_relpath(rel)
12420 entries = list_dir_entries(current_user(), rel, sort, order, query, category, size_min_mb * 1024 * 1024, None if size_max_mb is None else size_max_mb * 1024 * 1024, _parse_date_start(date_from), _parse_date_end(date_to))

Callers 11

chat_withFunction · 0.70
_dm_build_message_dictFunction · 0.70
api_dm_sinceFunction · 0.70
api_group_sinceFunction · 0.70
group_chatFunction · 0.70
group_sendFunction · 0.70
group_pollFunction · 0.70
reportsFunction · 0.70
_story_user_cardsFunction · 0.70
_stories_for_userFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected