[PR #153] [MERGED] fix:sorted btween 'dict' and 'dict' #436

Closed
opened 2026-02-27 15:58:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/retspen/webvirtcloud/pull/153
Author: @hongweipeng
Created: 6/11/2018
Status: Merged
Merged: 6/15/2018
Merged by: @retspen

Base: masterHead: patch-1


📝 Commits (1)

  • 078905d fix:sorted btween 'dict' and 'dict'

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 instances/views.py (+2 -2)

📄 Description

in the function get_snapshot,it return a list of dict, such as:

[
    {'date':'', 'name': ''},
    {'date':'', 'name': ''},
]

it raise an Exception sorted not supported between instances of 'dict' and 'dict'.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/retspen/webvirtcloud/pull/153 **Author:** [@hongweipeng](https://github.com/hongweipeng) **Created:** 6/11/2018 **Status:** ✅ Merged **Merged:** 6/15/2018 **Merged by:** [@retspen](https://github.com/retspen) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`078905d`](https://github.com/retspen/webvirtcloud/commit/078905df8a38be7d7c65869c71429131eca57364) fix:sorted btween 'dict' and 'dict' ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `instances/views.py` (+2 -2) </details> ### 📄 Description in the function `get_snapshot`,it return a list of dict, such as: ``` [ {'date':'', 'name': ''}, {'date':'', 'name': ''}, ] ``` it raise an Exception `sorted` not supported between instances of 'dict' and 'dict'. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:58:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#436
No description provided.