Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change IP sorting #187

Open
HMCmin opened this issue Nov 4, 2021 · 3 comments
Open

change IP sorting #187

HMCmin opened this issue Nov 4, 2021 · 3 comments

Comments

@HMCmin
Copy link

HMCmin commented Nov 4, 2021

Hello,

How change default sort function:

{%- for active_miner in active_miners|sort(attribute='ip') %}

I have now about 105 L3 running with different subnets

10.0.0.100
10.0.0.101
10.0.0.102
10.0.0.103
10.0.0.104
10.0.0.105
10.0.1.1
10.0.1.10
10.0.1.100
10.0.1.11

And I want to list them propertly.

Best Regards

@anselal
Copy link
Owner

anselal commented Nov 5, 2021

Hi there,

glad you liked my software.

Well, you already have the solution.
The sorting happens in the frontend but you want to sort in the backend.

Remove |sort(attribute='ip') from the html files amd sort the miners in the following view:

@HMCmin
Copy link
Author

HMCmin commented Nov 5, 2021

hello,

it is possible to change
{%- for active_miner in active_miners|sort(attribute='ip') %}

to
{%- for active_miner in active_miners|dictsort(true) %}

Best Regards

@HMCmin
Copy link
Author

HMCmin commented Nov 18, 2021

I Have forked and made some changes:
https://github.com/HMCmin/antminer-monitor

thanks for great software

Best Regards

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

No branches or pull requests

2 participants